Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public FoldersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
}
/**
* Get all the mailboxFolder objects in the specified mailbox, including any search folders.
* Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren't returned. To include them, specify includeHiddenFolders=true.
* @return a {@link MailboxFolderCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/mailbox-list-folders?view=graph-rest-1.0">Find more info here</a>
Expand All @@ -79,7 +79,7 @@ public MailboxFolderCollectionResponse get() {
return get(null);
}
/**
* Get all the mailboxFolder objects in the specified mailbox, including any search folders.
* Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link MailboxFolderCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
Expand Down Expand Up @@ -120,15 +120,15 @@ public MailboxFolder post(@jakarta.annotation.Nonnull final MailboxFolder body,
return this.requestAdapter.send(requestInfo, errorMapping, MailboxFolder::createFromDiscriminatorValue);
}
/**
* Get all the mailboxFolder objects in the specified mailbox, including any search folders.
* Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Get all the mailboxFolder objects in the specified mailbox, including any search folders.
* Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand Down Expand Up @@ -174,7 +174,7 @@ public FoldersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra
return new FoldersRequestBuilder(rawUrl, requestAdapter);
}
/**
* Get all the mailboxFolder objects in the specified mailbox, including any search folders.
* Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public ChildFoldersRequestBuilder(@jakarta.annotation.Nonnull final String rawUr
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
}
/**
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
* @return a {@link MailboxFolderCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/mailboxfolder-list-childfolders?view=graph-rest-1.0">Find more info here</a>
Expand All @@ -79,7 +79,7 @@ public MailboxFolderCollectionResponse get() {
return get(null);
}
/**
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link MailboxFolderCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
Expand Down Expand Up @@ -118,15 +118,15 @@ public MailboxFolder post(@jakarta.annotation.Nonnull final MailboxFolder body,
return this.requestAdapter.send(requestInfo, errorMapping, MailboxFolder::createFromDiscriminatorValue);
}
/**
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand Down Expand Up @@ -172,7 +172,7 @@ public ChildFoldersRequestBuilder withUrl(@jakarta.annotation.Nonnull final Stri
return new ChildFoldersRequestBuilder(rawUrl, requestAdapter);
}
/**
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
* Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren&apos;t returned. To include them, specify includeHiddenFolders=true.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.microsoft.graph.deviceappmanagement.mobileapps.item.graphandroidlobapp.contentversions.item.containedapps.ContainedAppsRequestBuilder;
import com.microsoft.graph.deviceappmanagement.mobileapps.item.graphandroidlobapp.contentversions.item.files.FilesRequestBuilder;
import com.microsoft.graph.deviceappmanagement.mobileapps.item.graphandroidlobapp.contentversions.item.scripts.ScriptsRequestBuilder;
import com.microsoft.graph.models.MobileAppContent;
import com.microsoft.graph.models.odataerrors.ODataError;
import com.microsoft.kiota.BaseRequestBuilder;
Expand Down Expand Up @@ -38,6 +39,14 @@ public ContainedAppsRequestBuilder containedApps() {
public FilesRequestBuilder files() {
return new FilesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the scripts property of the microsoft.graph.mobileAppContent entity.
* @return a {@link ScriptsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ScriptsRequestBuilder scripts() {
return new ScriptsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Instantiates a new {@link MobileAppContentItemRequestBuilder} and sets the default values.
* @param pathParameters Path parameters for the request
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
package com.microsoft.graph.deviceappmanagement.mobileapps.item.graphandroidlobapp.contentversions.item.scripts;

import com.microsoft.graph.deviceappmanagement.mobileapps.item.graphandroidlobapp.contentversions.item.scripts.count.CountRequestBuilder;
import com.microsoft.graph.deviceappmanagement.mobileapps.item.graphandroidlobapp.contentversions.item.scripts.item.MobileAppContentScriptItemRequestBuilder;
import com.microsoft.graph.models.MobileAppContentScript;
import com.microsoft.graph.models.MobileAppContentScriptCollectionResponse;
import com.microsoft.graph.models.odataerrors.ODataError;
import com.microsoft.kiota.BaseRequestBuilder;
import com.microsoft.kiota.BaseRequestConfiguration;
import com.microsoft.kiota.HttpMethod;
import com.microsoft.kiota.QueryParameters;
import com.microsoft.kiota.RequestAdapter;
import com.microsoft.kiota.RequestInformation;
import com.microsoft.kiota.RequestOption;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParsableFactory;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Provides operations to manage the scripts property of the microsoft.graph.mobileAppContent entity.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ScriptsRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to count the resources in the collection.
* @return a {@link CountRequestBuilder}
*/
@jakarta.annotation.Nonnull
public CountRequestBuilder count() {
return new CountRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the scripts property of the microsoft.graph.mobileAppContent entity.
* @param mobileAppContentScriptId The unique identifier of mobileAppContentScript
* @return a {@link MobileAppContentScriptItemRequestBuilder}
*/
@jakarta.annotation.Nonnull
public MobileAppContentScriptItemRequestBuilder byMobileAppContentScriptId(@jakarta.annotation.Nonnull final String mobileAppContentScriptId) {
Objects.requireNonNull(mobileAppContentScriptId);
final HashMap<String, Object> urlTplParams = new HashMap<String, Object>(this.pathParameters);
urlTplParams.put("mobileAppContentScript%2Did", mobileAppContentScriptId);
return new MobileAppContentScriptItemRequestBuilder(urlTplParams, requestAdapter);
}
/**
* Instantiates a new {@link ScriptsRequestBuilder} and sets the default values.
* @param pathParameters Path parameters for the request
* @param requestAdapter The request adapter to use to execute the requests.
*/
public ScriptsRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/scripts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
}
/**
* Instantiates a new {@link ScriptsRequestBuilder} and sets the default values.
* @param rawUrl The raw URL to use for the request builder.
* @param requestAdapter The request adapter to use to execute the requests.
*/
public ScriptsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/scripts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
}
/**
* The list of scripts for this app content version.
* @return a {@link MobileAppContentScriptCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
@jakarta.annotation.Nullable
public MobileAppContentScriptCollectionResponse get() {
return get(null);
}
/**
* The list of scripts for this app content version.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link MobileAppContentScriptCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
@jakarta.annotation.Nullable
public MobileAppContentScriptCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, MobileAppContentScriptCollectionResponse::createFromDiscriminatorValue);
}
/**
* Create new navigation property to scripts for deviceAppManagement
* @param body The request body
* @return a {@link MobileAppContentScript}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
@jakarta.annotation.Nullable
public MobileAppContentScript post(@jakarta.annotation.Nonnull final MobileAppContentScript body) {
return post(body, null);
}
/**
* Create new navigation property to scripts for deviceAppManagement
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link MobileAppContentScript}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
@jakarta.annotation.Nullable
public MobileAppContentScript post(@jakarta.annotation.Nonnull final MobileAppContentScript body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, MobileAppContentScript::createFromDiscriminatorValue);
}
/**
* The list of scripts for this app content version.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* The list of scripts for this app content version.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
requestInfo.headers.tryAdd("Accept", "application/json");
return requestInfo;
}
/**
* Create new navigation property to scripts for deviceAppManagement
* @param body The request body
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MobileAppContentScript body) {
return toPostRequestInformation(body, null);
}
/**
* Create new navigation property to scripts for deviceAppManagement
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final MobileAppContentScript body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
requestInfo.headers.tryAdd("Accept", "application/json");
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
return requestInfo;
}
/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link ScriptsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ScriptsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new ScriptsRequestBuilder(rawUrl, requestAdapter);
}
/**
* The list of scripts for this app content version.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
/**
* Include count of items
*/
@jakarta.annotation.Nullable
public Boolean count;
/**
* Expand related entities
*/
@jakarta.annotation.Nullable
public String[] expand;
/**
* Filter items by property values
*/
@jakarta.annotation.Nullable
public String filter;
/**
* Order items by property values
*/
@jakarta.annotation.Nullable
public String[] orderby;
/**
* Search items by search phrases
*/
@jakarta.annotation.Nullable
public String search;
/**
* Select properties to be returned
*/
@jakarta.annotation.Nullable
public String[] select;
/**
* Skip the first n items
*/
@jakarta.annotation.Nullable
public Integer skip;
/**
* Show only the first n items
*/
@jakarta.annotation.Nullable
public Integer top;
/**
* Extracts the query parameters into a map for the URI template parsing.
* @return a {@link Map<String, Object>}
*/
@jakarta.annotation.Nonnull
public Map<String, Object> toQueryParameters() {
final Map<String, Object> allQueryParams = new HashMap();
allQueryParams.put("%24count", count);
allQueryParams.put("%24filter", filter);
allQueryParams.put("%24search", search);
allQueryParams.put("%24skip", skip);
allQueryParams.put("%24top", top);
allQueryParams.put("%24expand", expand);
allQueryParams.put("%24orderby", orderby);
allQueryParams.put("%24select", select);
return allQueryParams;
}
}
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetRequestConfiguration extends BaseRequestConfiguration {
/**
* Request query parameters
*/
@jakarta.annotation.Nullable
public GetQueryParameters queryParameters = new GetQueryParameters();
}
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class PostRequestConfiguration extends BaseRequestConfiguration {
}
}
Loading
Loading