From f3206106fbb5609a5df6733ec4a407a4c3d436b9 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 10 Sep 2020 14:15:18 -0400 Subject: [PATCH] - adds missing fluent method for odata filter --- ...seEntityCollectionReferenceRequest.java.tt | 13 ++++++++ .../BaseEntityCollectionRequest.java.tt | 13 ++++++++ ...ityCollectionWithReferencesRequest.java.tt | 7 +++++ .../BaseEntityReferenceRequest.java.tt | 12 ++++++++ .../BaseEntityRequest.java.tt | 13 ++++++++ .../BaseEntityWithReferenceRequest.java.tt | 12 ++++++++ .../BaseMethodBodyRequest.java.tt | 13 ++++++++ .../BaseMethodCollectionRequest.java.tt | 13 ++++++++ .../BaseMethodRequest.java.tt | 30 +++++++++++++++++++ .../IBaseEntityCollectionRequest.java.tt | 10 +++++++ .../extensions/CallCollectionRequest.java | 11 +++++++ .../extensions/CallReferenceRequest.java | 10 +++++++ .../requests/extensions/CallRequest.java | 11 +++++++ .../extensions/CallWithReferenceRequest.java | 10 +++++++ .../CloudCommunicationsRequest.java | 11 +++++++ .../requests/extensions/EndpointRequest.java | 11 +++++++ .../requests/extensions/EntityRequest.java | 11 +++++++ .../EntityType2CollectionRequest.java | 11 +++++++ .../EntityType2ReferenceRequest.java | 10 +++++++ .../extensions/EntityType2Request.java | 11 +++++++ .../EntityType2WithReferenceRequest.java | 10 +++++++ ...EntityType3CollectionReferenceRequest.java | 11 +++++++ .../EntityType3CollectionRequest.java | 11 +++++++ ...yType3CollectionWithReferencesRequest.java | 5 ++++ .../extensions/EntityType3ForwardRequest.java | 11 +++++++ .../EntityType3ReferenceRequest.java | 10 +++++++ .../extensions/EntityType3Request.java | 11 +++++++ .../EntityType3WithReferenceRequest.java | 10 +++++++ .../extensions/ICallCollectionRequest.java | 8 +++++ .../IEntityType2CollectionRequest.java | 8 +++++ .../IEntityType3CollectionRequest.java | 8 +++++ .../extensions/ITimeOffCollectionRequest.java | 8 +++++ .../ITimeOffRequestCollectionRequest.java | 8 +++++ .../extensions/OnenotePageForwardRequest.java | 11 +++++++ .../extensions/OnenotePageRequest.java | 11 +++++++ .../extensions/PlannerGroupRequest.java | 11 +++++++ .../requests/extensions/ScheduleRequest.java | 11 +++++++ .../extensions/SingletonEntity1Request.java | 11 +++++++ .../extensions/SingletonEntity2Request.java | 11 +++++++ .../extensions/TestEntityRequest.java | 11 +++++++ .../TestTypeQueryCollectionRequest.java | 11 +++++++ .../extensions/TestTypeReferenceRequest.java | 10 +++++++ .../requests/extensions/TestTypeRequest.java | 11 +++++++ .../TestTypeWithReferenceRequest.java | 10 +++++++ .../extensions/TimeOffCollectionRequest.java | 11 +++++++ .../requests/extensions/TimeOffRequest.java | 11 +++++++ .../TimeOffRequestCollectionRequest.java | 11 +++++++ .../extensions/TimeOffRequestRequest.java | 11 +++++++ .../CallRecordCollectionRequest.java | 11 +++++++ .../extensions/CallRecordRequest.java | 11 +++++++ .../ICallRecordCollectionRequest.java | 8 +++++ .../extensions/ISegmentCollectionRequest.java | 8 +++++ .../extensions/ISessionCollectionRequest.java | 8 +++++ .../requests/extensions/OptionRequest.java | 11 +++++++ .../requests/extensions/PhotoRequest.java | 11 +++++++ .../extensions/SegmentCollectionRequest.java | 11 +++++++ .../extensions/SegmentForwardRequest.java | 11 +++++++ .../requests/extensions/SegmentRequest.java | 11 +++++++ .../SegmentTestActionCollectionRequest.java | 11 +++++++ .../extensions/SessionCollectionRequest.java | 11 +++++++ .../extensions/SessionReferenceRequest.java | 10 +++++++ .../requests/extensions/SessionRequest.java | 11 +++++++ .../SessionWithReferenceRequest.java | 10 +++++++ .../extensions/SingletonEntity1Request.java | 11 +++++++ 64 files changed, 690 insertions(+) diff --git a/Templates/Java/requests_extensions/BaseEntityCollectionReferenceRequest.java.tt b/Templates/Java/requests_extensions/BaseEntityCollectionReferenceRequest.java.tt index 4ca57274b..5997754ac 100644 --- a/Templates/Java/requests_extensions/BaseEntityCollectionReferenceRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseEntityCollectionReferenceRequest.java.tt @@ -67,6 +67,19 @@ import <#=mainNamespace#>.<#=c.GetPackagePrefix()#>.<#=c.TypeName()#>; return (<#=c.TypeCollectionReferenceRequest()#>)this; } +<# } #> +<# if (c.GetFeatures().CanFilter) { #> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=c.ITypeCollectionReferenceRequest()#> filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.TypeCollectionReferenceRequest()#>)this; + } + <# } #> <# if (c.GetFeatures().CanSelect) { #> /** diff --git a/Templates/Java/requests_extensions/BaseEntityCollectionRequest.java.tt b/Templates/Java/requests_extensions/BaseEntityCollectionRequest.java.tt index 3c2033e91..f27927f04 100644 --- a/Templates/Java/requests_extensions/BaseEntityCollectionRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseEntityCollectionRequest.java.tt @@ -76,6 +76,19 @@ import <#=mainNamespace#>.<#=TypeHelperJava.GetPrefixForRequests()#>.<#=c.TypeCo return (<#=c.TypeCollectionRequest()#>)this; } +<# } #> +<# if (c.GetFeatures().CanFilter) { #> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=c.ITypeCollectionRequest()#> filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.TypeCollectionRequest()#>)this; + } + <# } #> <# if (c.GetFeatures().CanSelect) { #> /** diff --git a/Templates/Java/requests_extensions/BaseEntityCollectionWithReferencesRequest.java.tt b/Templates/Java/requests_extensions/BaseEntityCollectionWithReferencesRequest.java.tt index 89448cf71..e626ac137 100644 --- a/Templates/Java/requests_extensions/BaseEntityCollectionWithReferencesRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseEntityCollectionWithReferencesRequest.java.tt @@ -50,6 +50,13 @@ import <#=importNamespace#>.concurrency.IExecutors; return (<#=c.TypeCollectionRequest()#>)this; } +<# } #> +<# if (c.GetFeatures().CanFilter) { #> + public <#=c.ITypeCollectionRequest()#> filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.TypeCollectionRequest()#>)this; + } + <# } #> <# if (c.GetFeatures().CanSelect) { #> public <#=c.ITypeCollectionRequest()#> select(final String value) { diff --git a/Templates/Java/requests_extensions/BaseEntityReferenceRequest.java.tt b/Templates/Java/requests_extensions/BaseEntityReferenceRequest.java.tt index 59c4a382c..dded44974 100644 --- a/Templates/Java/requests_extensions/BaseEntityReferenceRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseEntityReferenceRequest.java.tt @@ -58,6 +58,18 @@ import <#=importNamespace#>.core.IBaseClient; return (<#=c.TypeReferenceRequest()#>)this; } <# } #> +<# if (c.GetFeatures().CanFilter) { #> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=c.ITypeReferenceRequest()#> filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.TypeReferenceRequest()#>)this; + } +<# } #> <# if (c.GetFeatures().CanUpdate) { #> /** * Puts the <#=c.TypeName()#> diff --git a/Templates/Java/requests_extensions/BaseEntityRequest.java.tt b/Templates/Java/requests_extensions/BaseEntityRequest.java.tt index 7efb78b1b..5f7eb8d9a 100644 --- a/Templates/Java/requests_extensions/BaseEntityRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseEntityRequest.java.tt @@ -98,6 +98,19 @@ import <#=importNamespace#>.http.HttpMethod; return (<#=c.TypeRequest()#>)this; } +<# } #> +<# if (c.GetFeatures().CanFilter) { #> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=c.ITypeRequest()#> filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.TypeRequest()#>)this; + } + <# } #> <# if (c.AsOdcmProperty() != null && c.AsOdcmProperty().IsCollection && c.GetFeatures().CanUseTop) { #> diff --git a/Templates/Java/requests_extensions/BaseEntityWithReferenceRequest.java.tt b/Templates/Java/requests_extensions/BaseEntityWithReferenceRequest.java.tt index 0c882d674..5ecb98392 100644 --- a/Templates/Java/requests_extensions/BaseEntityWithReferenceRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseEntityWithReferenceRequest.java.tt @@ -88,4 +88,16 @@ import <#=importNamespace#>.serializer.IJsonBackedObject; return (<#=c.TypeWithReferencesRequest()#>)this; } <# } #> +<# if (c.GetFeatures().CanFilter) { #> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=c.ITypeWithReferencesRequest()#> filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.TypeWithReferencesRequest()#>)this; + } +<# } #> } diff --git a/Templates/Java/requests_extensions/BaseMethodBodyRequest.java.tt b/Templates/Java/requests_extensions/BaseMethodBodyRequest.java.tt index 2d37bcd13..47847bf53 100644 --- a/Templates/Java/requests_extensions/BaseMethodBodyRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseMethodBodyRequest.java.tt @@ -105,5 +105,18 @@ import <#=importNamespace#>.http.HttpMethod; return (<#=typeRequest#>)this; } +<# } #> +<# if (c.GetFeatures().CanFilter) { #> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=iTypeRequest#> filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=typeRequest#>)this; + } + <# } #> } diff --git a/Templates/Java/requests_extensions/BaseMethodCollectionRequest.java.tt b/Templates/Java/requests_extensions/BaseMethodCollectionRequest.java.tt index 5c7535709..382b9cc42 100644 --- a/Templates/Java/requests_extensions/BaseMethodCollectionRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseMethodCollectionRequest.java.tt @@ -143,5 +143,18 @@ import <#=importNamespace#>.concurrency.IExecutors; return (<#=c.ITypeCollectionRequest()#>)this; } +<# } #> +<# if (c.GetFeatures().CanFilter) { #> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=c.ITypeCollectionRequest()#> filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.ITypeCollectionRequest()#>)this; + } + <# } #> } diff --git a/Templates/Java/requests_extensions/BaseMethodRequest.java.tt b/Templates/Java/requests_extensions/BaseMethodRequest.java.tt index 737fcf2a4..a574b8982 100644 --- a/Templates/Java/requests_extensions/BaseMethodRequest.java.tt +++ b/Templates/Java/requests_extensions/BaseMethodRequest.java.tt @@ -79,6 +79,22 @@ if (c.AsOdcmMethod().IsAction()) { return (<#=c.TypeRequest()#>)this; } +<# + } + + if (c.GetFeatures().CanFilter) { +#> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=c.ITypeRequest()#> filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.TypeRequest()#>)this; + } + <# } @@ -227,7 +243,21 @@ if (c.AsOdcmMethod().IsAction()) { <# } + if (c.GetFeatures().CanFilter) { +#> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public <#=c.ITypeRequest()#> filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (<#=c.TypeRequest()#>)this; + } +<# + } if (c.AsOdcmProperty() != null && c.AsOdcmProperty().IsCollection && c.GetFeatures().CanUseTop) { #> diff --git a/Templates/Java/requests_extensions/IBaseEntityCollectionRequest.java.tt b/Templates/Java/requests_extensions/IBaseEntityCollectionRequest.java.tt index 24d494920..75f4be9bd 100644 --- a/Templates/Java/requests_extensions/IBaseEntityCollectionRequest.java.tt +++ b/Templates/Java/requests_extensions/IBaseEntityCollectionRequest.java.tt @@ -28,6 +28,16 @@ import <#=importNamespace#>.http.IBaseCollectionPage; */ <#=c.ITypeCollectionRequest()#> expand(final String value); +<# } #> +<# if (c.GetFeatures().CanFilter) { #> + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + <#=c.ITypeCollectionRequest()#> filter(final String value); + <# } #> <# if (c.GetFeatures().CanSelect) { #> /** diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallCollectionRequest.java index f14646c0a..8a0fd66db 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallCollectionRequest.java @@ -84,6 +84,17 @@ public ICallCollectionRequest expand(final String value) { return (CallCollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ICallCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (CallCollectionRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallReferenceRequest.java index 28b5244f5..d876438f8 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallReferenceRequest.java @@ -63,6 +63,16 @@ public ICallReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (CallReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ICallReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (CallReferenceRequest)this; + } /** * Puts the Call * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallRequest.java index f5b8292da..14829ae70 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallRequest.java @@ -154,5 +154,16 @@ public ICallRequest expand(final String value) { return (CallRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ICallRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (CallRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallWithReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallWithReferenceRequest.java index 347871587..6df261edc 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallWithReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CallWithReferenceRequest.java @@ -93,4 +93,14 @@ public ICallWithReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (CallWithReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ICallWithReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (CallWithReferenceRequest)this; + } } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CloudCommunicationsRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CloudCommunicationsRequest.java index 1f0bcb921..fce9c1e81 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CloudCommunicationsRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/CloudCommunicationsRequest.java @@ -162,5 +162,16 @@ public ICloudCommunicationsRequest expand(final String value) { return (CloudCommunicationsRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ICloudCommunicationsRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (CloudCommunicationsRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EndpointRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EndpointRequest.java index 3827209b2..2ee984a2c 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EndpointRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EndpointRequest.java @@ -154,5 +154,16 @@ public IEndpointRequest expand(final String value) { return (EndpointRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEndpointRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EndpointRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityRequest.java index d522e83ca..56d3a71cf 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityRequest.java @@ -69,5 +69,16 @@ public IEntityRequest expand(final String value) { return (EntityRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2CollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2CollectionRequest.java index 13911da52..9bef299f7 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2CollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2CollectionRequest.java @@ -84,6 +84,17 @@ public IEntityType2CollectionRequest expand(final String value) { return (EntityType2CollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType2CollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType2CollectionRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2ReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2ReferenceRequest.java index 6f5844f09..6751574de 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2ReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2ReferenceRequest.java @@ -63,6 +63,16 @@ public IEntityType2ReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (EntityType2ReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType2ReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType2ReferenceRequest)this; + } /** * Puts the EntityType2 * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2Request.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2Request.java index fc912061b..d7432f6c9 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2Request.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2Request.java @@ -154,5 +154,16 @@ public IEntityType2Request expand(final String value) { return (EntityType2Request)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType2Request filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType2Request)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2WithReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2WithReferenceRequest.java index ea4ee93fa..bd7d042b0 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2WithReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType2WithReferenceRequest.java @@ -93,4 +93,14 @@ public IEntityType2WithReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (EntityType2WithReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType2WithReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType2WithReferenceRequest)this; + } } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionReferenceRequest.java index 08275aefb..b30a70d40 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionReferenceRequest.java @@ -64,6 +64,17 @@ public IEntityType3CollectionReferenceRequest expand(final String value) { return (EntityType3CollectionReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType3CollectionReferenceRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType3CollectionReferenceRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionRequest.java index 157b61fb7..7840a47cd 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionRequest.java @@ -85,6 +85,17 @@ public IEntityType3CollectionRequest expand(final String value) { return (EntityType3CollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType3CollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType3CollectionRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionWithReferencesRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionWithReferencesRequest.java index 59e0443a0..8df3b8fec 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionWithReferencesRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3CollectionWithReferencesRequest.java @@ -61,6 +61,11 @@ public IEntityType3CollectionWithReferencesRequest expand(final String value) { return (EntityType3CollectionWithReferencesRequest)this; } + public IEntityType3CollectionWithReferencesRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType3CollectionWithReferencesRequest)this; + } + public IEntityType3CollectionWithReferencesRequest select(final String value) { addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value)); return (EntityType3CollectionWithReferencesRequest)this; diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3ForwardRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3ForwardRequest.java index c66ddd8b1..7c42ed0bc 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3ForwardRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3ForwardRequest.java @@ -77,4 +77,15 @@ public IEntityType3ForwardRequest expand(final String value) { return (EntityType3ForwardRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType3ForwardRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType3ForwardRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3ReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3ReferenceRequest.java index b0850ead1..4d901a42b 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3ReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3ReferenceRequest.java @@ -65,6 +65,16 @@ public IEntityType3ReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (EntityType3ReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType3ReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType3ReferenceRequest)this; + } /** * Puts the EntityType3 * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3Request.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3Request.java index 82f5c69e1..de7847d0b 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3Request.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3Request.java @@ -156,5 +156,16 @@ public IEntityType3Request expand(final String value) { return (EntityType3Request)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType3Request filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType3Request)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3WithReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3WithReferenceRequest.java index ae9bb9d1b..49c7bb9d8 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3WithReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/EntityType3WithReferenceRequest.java @@ -95,4 +95,14 @@ public IEntityType3WithReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (EntityType3WithReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IEntityType3WithReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (EntityType3WithReferenceRequest)this; + } } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ICallCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ICallCollectionRequest.java index eacd23191..eed33d657 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ICallCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ICallCollectionRequest.java @@ -37,6 +37,14 @@ public interface ICallCollectionRequest { */ ICallCollectionRequest expand(final String value); + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + ICallCollectionRequest filter(final String value); + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType2CollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType2CollectionRequest.java index 812770cf9..1ce34188e 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType2CollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType2CollectionRequest.java @@ -37,6 +37,14 @@ public interface IEntityType2CollectionRequest { */ IEntityType2CollectionRequest expand(final String value); + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + IEntityType2CollectionRequest filter(final String value); + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType3CollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType3CollectionRequest.java index 96db01137..a10bf1e72 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType3CollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/IEntityType3CollectionRequest.java @@ -38,6 +38,14 @@ public interface IEntityType3CollectionRequest { */ IEntityType3CollectionRequest expand(final String value); + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + IEntityType3CollectionRequest filter(final String value); + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ITimeOffCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ITimeOffCollectionRequest.java index a713e4676..815e76275 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ITimeOffCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ITimeOffCollectionRequest.java @@ -37,6 +37,14 @@ public interface ITimeOffCollectionRequest { */ ITimeOffCollectionRequest expand(final String value); + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + ITimeOffCollectionRequest filter(final String value); + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ITimeOffRequestCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ITimeOffRequestCollectionRequest.java index b16170e81..6e860d25a 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ITimeOffRequestCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ITimeOffRequestCollectionRequest.java @@ -38,6 +38,14 @@ public interface ITimeOffRequestCollectionRequest { */ ITimeOffRequestCollectionRequest expand(final String value); + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + ITimeOffRequestCollectionRequest filter(final String value); + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/OnenotePageForwardRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/OnenotePageForwardRequest.java index fbf385d72..e1fade7ef 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/OnenotePageForwardRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/OnenotePageForwardRequest.java @@ -77,4 +77,15 @@ public IOnenotePageForwardRequest expand(final String value) { return (OnenotePageForwardRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IOnenotePageForwardRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (OnenotePageForwardRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/OnenotePageRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/OnenotePageRequest.java index baa88f5aa..075e85f9e 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/OnenotePageRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/OnenotePageRequest.java @@ -155,5 +155,16 @@ public IOnenotePageRequest expand(final String value) { return (OnenotePageRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IOnenotePageRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (OnenotePageRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/PlannerGroupRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/PlannerGroupRequest.java index 8a3af9795..69e4ba38b 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/PlannerGroupRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/PlannerGroupRequest.java @@ -154,5 +154,16 @@ public IPlannerGroupRequest expand(final String value) { return (PlannerGroupRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IPlannerGroupRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (PlannerGroupRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ScheduleRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ScheduleRequest.java index 3769e417a..93b3fbfc6 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ScheduleRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/ScheduleRequest.java @@ -162,5 +162,16 @@ public IScheduleRequest expand(final String value) { return (ScheduleRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IScheduleRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (ScheduleRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/SingletonEntity1Request.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/SingletonEntity1Request.java index 6a4dc8fac..e63ad00f6 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/SingletonEntity1Request.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/SingletonEntity1Request.java @@ -156,5 +156,16 @@ public ISingletonEntity1Request expand(final String value) { return (SingletonEntity1Request)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISingletonEntity1Request filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SingletonEntity1Request)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/SingletonEntity2Request.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/SingletonEntity2Request.java index 4a5de734e..7a5c49216 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/SingletonEntity2Request.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/SingletonEntity2Request.java @@ -156,5 +156,16 @@ public ISingletonEntity2Request expand(final String value) { return (SingletonEntity2Request)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISingletonEntity2Request filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SingletonEntity2Request)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestEntityRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestEntityRequest.java index d6780e1ad..6190de4d9 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestEntityRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestEntityRequest.java @@ -160,5 +160,16 @@ public ITestEntityRequest expand(final String value) { return (TestEntityRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITestEntityRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (TestEntityRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeQueryCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeQueryCollectionRequest.java index c6b245c15..0a6a6eabb 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeQueryCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeQueryCollectionRequest.java @@ -110,4 +110,15 @@ public ITestTypeQueryCollectionRequest expand(final String value) { return (ITestTypeQueryCollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITestTypeQueryCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (ITestTypeQueryCollectionRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeReferenceRequest.java index caece24f2..910b758b2 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeReferenceRequest.java @@ -65,6 +65,16 @@ public ITestTypeReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (TestTypeReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITestTypeReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (TestTypeReferenceRequest)this; + } /** * Puts the TestType * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeRequest.java index a37f91e84..d6f01ac04 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeRequest.java @@ -156,5 +156,16 @@ public ITestTypeRequest expand(final String value) { return (TestTypeRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITestTypeRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (TestTypeRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeWithReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeWithReferenceRequest.java index 1be8eaf53..0d6e28424 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeWithReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TestTypeWithReferenceRequest.java @@ -95,4 +95,14 @@ public ITestTypeWithReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (TestTypeWithReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITestTypeWithReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (TestTypeWithReferenceRequest)this; + } } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffCollectionRequest.java index 9e8664215..799e8b0cf 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffCollectionRequest.java @@ -84,6 +84,17 @@ public ITimeOffCollectionRequest expand(final String value) { return (TimeOffCollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITimeOffCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (TimeOffCollectionRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequest.java index 6e6d866ac..c386786b0 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequest.java @@ -154,5 +154,16 @@ public ITimeOffRequest expand(final String value) { return (TimeOffRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITimeOffRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (TimeOffRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequestCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequestCollectionRequest.java index fda9cf8a3..26f90a581 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequestCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequestCollectionRequest.java @@ -85,6 +85,17 @@ public ITimeOffRequestCollectionRequest expand(final String value) { return (TimeOffRequestCollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITimeOffRequestCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (TimeOffRequestCollectionRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequestRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequestRequest.java index 785587fb1..e1bc81594 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequestRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph/requests/extensions/TimeOffRequestRequest.java @@ -154,5 +154,16 @@ public ITimeOffRequestRequest expand(final String value) { return (TimeOffRequestRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ITimeOffRequestRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (TimeOffRequestRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/CallRecordCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/CallRecordCollectionRequest.java index 60d7d97b1..ca14c56b3 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/CallRecordCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/CallRecordCollectionRequest.java @@ -84,6 +84,17 @@ public ICallRecordCollectionRequest expand(final String value) { return (CallRecordCollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ICallRecordCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (CallRecordCollectionRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/CallRecordRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/CallRecordRequest.java index f3441526a..b1eab08bf 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/CallRecordRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/CallRecordRequest.java @@ -162,5 +162,16 @@ public ICallRecordRequest expand(final String value) { return (CallRecordRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ICallRecordRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (CallRecordRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ICallRecordCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ICallRecordCollectionRequest.java index 173066a6b..b89d352f1 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ICallRecordCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ICallRecordCollectionRequest.java @@ -37,6 +37,14 @@ public interface ICallRecordCollectionRequest { */ ICallRecordCollectionRequest expand(final String value); + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + ICallRecordCollectionRequest filter(final String value); + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ISegmentCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ISegmentCollectionRequest.java index d2d382214..159865e2a 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ISegmentCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ISegmentCollectionRequest.java @@ -39,6 +39,14 @@ public interface ISegmentCollectionRequest { */ ISegmentCollectionRequest expand(final String value); + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + ISegmentCollectionRequest filter(final String value); + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ISessionCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ISessionCollectionRequest.java index 7947f2868..b3dcd1db4 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ISessionCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/ISessionCollectionRequest.java @@ -37,6 +37,14 @@ public interface ISessionCollectionRequest { */ ISessionCollectionRequest expand(final String value); + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + ISessionCollectionRequest filter(final String value); + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/OptionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/OptionRequest.java index 3bc8f90bb..cb96df0df 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/OptionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/OptionRequest.java @@ -154,5 +154,16 @@ public IOptionRequest expand(final String value) { return (OptionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IOptionRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (OptionRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/PhotoRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/PhotoRequest.java index f778bf336..b4a655666 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/PhotoRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/PhotoRequest.java @@ -154,5 +154,16 @@ public IPhotoRequest expand(final String value) { return (PhotoRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IPhotoRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (PhotoRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentCollectionRequest.java index bb13e3225..ea1773ef1 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentCollectionRequest.java @@ -86,6 +86,17 @@ public ISegmentCollectionRequest expand(final String value) { return (SegmentCollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISegmentCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SegmentCollectionRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentForwardRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentForwardRequest.java index 3e5838c97..5b21d1251 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentForwardRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentForwardRequest.java @@ -77,4 +77,15 @@ public ISegmentForwardRequest expand(final String value) { return (SegmentForwardRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISegmentForwardRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SegmentForwardRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentRequest.java index 8f123d79f..4a1365fdb 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentRequest.java @@ -167,5 +167,16 @@ public ISegmentRequest expand(final String value) { return (SegmentRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISegmentRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SegmentRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentTestActionCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentTestActionCollectionRequest.java index 0787a633c..c7df19f3f 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentTestActionCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SegmentTestActionCollectionRequest.java @@ -110,4 +110,15 @@ public ISegmentTestActionCollectionRequest expand(final String value) { return (ISegmentTestActionCollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISegmentTestActionCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (ISegmentTestActionCollectionRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionCollectionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionCollectionRequest.java index 8fe9b969c..079929648 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionCollectionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionCollectionRequest.java @@ -84,6 +84,17 @@ public ISessionCollectionRequest expand(final String value) { return (SessionCollectionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISessionCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SessionCollectionRequest)this; + } + /** * Sets the select clause for the request * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionReferenceRequest.java index 01e096f90..76fe292b0 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionReferenceRequest.java @@ -67,6 +67,16 @@ public ISessionReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (SessionReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISessionReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SessionReferenceRequest)this; + } /** * Puts the Session * diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionRequest.java index da1b6ce89..37e1a85af 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionRequest.java @@ -158,5 +158,16 @@ public ISessionRequest expand(final String value) { return (SessionRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISessionRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SessionRequest)this; + } + } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionWithReferenceRequest.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionWithReferenceRequest.java index 64cfe3144..dc5ddae73 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionWithReferenceRequest.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SessionWithReferenceRequest.java @@ -97,4 +97,14 @@ public ISessionWithReferenceRequest expand(final String value) { getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); return (SessionWithReferenceRequest)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISessionWithReferenceRequest filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SessionWithReferenceRequest)this; + } } diff --git a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SingletonEntity1Request.java b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SingletonEntity1Request.java index abd46923b..3273bffda 100644 --- a/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SingletonEntity1Request.java +++ b/test/Typewriter.Test/TestDataJava/com/microsoft/graph2/callrecords/requests/extensions/SingletonEntity1Request.java @@ -156,5 +156,16 @@ public ISingletonEntity1Request expand(final String value) { return (SingletonEntity1Request)this; } + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public ISingletonEntity1Request filter(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (SingletonEntity1Request)this; + } + }