Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
odata.msgraph.client.entity.collection.request.SiteCollectionRequest Maven / Gradle / Ivy
Go to download
Java client for use with the Microsoft Graph v1.0 endpoint
package odata.msgraph.client.entity.collection.request;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.davidmoten.guavamini.Preconditions;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.CollectionPageNonEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.annotation.Function;
import com.github.davidmoten.odata.client.internal.Checks;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import odata.msgraph.client.entity.Site;
import odata.msgraph.client.entity.request.BaseItemRequest;
import odata.msgraph.client.entity.request.ColumnDefinitionRequest;
import odata.msgraph.client.entity.request.ContentTypeRequest;
import odata.msgraph.client.entity.request.DriveRequest;
import odata.msgraph.client.entity.request.ListRequest;
import odata.msgraph.client.entity.request.PermissionRequest;
import odata.msgraph.client.entity.request.RichLongRunningOperationRequest;
import odata.msgraph.client.entity.request.SiteRequest;
import odata.msgraph.client.termstore.entity.collection.request.StoreCollectionRequest;
import odata.msgraph.client.termstore.entity.request.StoreRequest;
public class SiteCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public SiteCollectionRequest(ContextPath contextPath, Optional value) {
super(contextPath, Site.class, cp -> new SiteRequest(cp, Optional.empty()), value);
this.contextPath = contextPath;
}
public ColumnDefinitionRequest columns(String id) {
return new ColumnDefinitionRequest(contextPath.addSegment("columns").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public ColumnDefinitionCollectionRequest columns() {
return new ColumnDefinitionCollectionRequest(contextPath.addSegment("columns"), Optional.empty());
}
public ContentTypeRequest contentTypes(String id) {
return new ContentTypeRequest(contextPath.addSegment("contentTypes").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public ContentTypeCollectionRequest contentTypes() {
return new ContentTypeCollectionRequest(contextPath.addSegment("contentTypes"), Optional.empty());
}
public DriveRequest drives(String id) {
return new DriveRequest(contextPath.addSegment("drives").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public DriveCollectionRequest drives() {
return new DriveCollectionRequest(contextPath.addSegment("drives"), Optional.empty());
}
public ColumnDefinitionRequest externalColumns(String id) {
return new ColumnDefinitionRequest(contextPath.addSegment("externalColumns").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public ColumnDefinitionCollectionRequest externalColumns() {
return new ColumnDefinitionCollectionRequest(contextPath.addSegment("externalColumns"), Optional.empty());
}
public BaseItemRequest items(String id) {
return new BaseItemRequest(contextPath.addSegment("items").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public BaseItemCollectionRequest items() {
return new BaseItemCollectionRequest(contextPath.addSegment("items"), Optional.empty());
}
public ListRequest lists(String id) {
return new ListRequest(contextPath.addSegment("lists").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public ListCollectionRequest lists() {
return new ListCollectionRequest(contextPath.addSegment("lists"), Optional.empty());
}
public RichLongRunningOperationRequest operations(String id) {
return new RichLongRunningOperationRequest(contextPath.addSegment("operations").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public RichLongRunningOperationCollectionRequest operations() {
return new RichLongRunningOperationCollectionRequest(contextPath.addSegment("operations"), Optional.empty());
}
public PermissionRequest permissions(String id) {
return new PermissionRequest(contextPath.addSegment("permissions").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public PermissionCollectionRequest permissions() {
return new PermissionCollectionRequest(contextPath.addSegment("permissions"), Optional.empty());
}
public SiteRequest sites(String id) {
return new SiteRequest(contextPath.addSegment("sites").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public SiteCollectionRequest sites() {
return new SiteCollectionRequest(contextPath.addSegment("sites"), Optional.empty());
}
public StoreRequest termStores(String id) {
return new StoreRequest(contextPath.addSegment("termStores").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public StoreCollectionRequest termStores() {
return new StoreCollectionRequest(contextPath.addSegment("termStores"), Optional.empty());
}
@Action(name = "add")
@JsonIgnore
public CollectionPageNonEntityRequest add(List value) {
Map _parameters = ParameterMap
.put("value", "Collection(microsoft.graph.site)", value)
.build();
return CollectionPageNonEntityRequest.forAction(this.contextPath.addActionOrFunctionSegment("microsoft.graph.add"), Site.class, _parameters);
}
@Action(name = "remove")
@JsonIgnore
public CollectionPageNonEntityRequest remove(List value) {
Map _parameters = ParameterMap
.put("value", "Collection(microsoft.graph.site)", value)
.build();
return CollectionPageNonEntityRequest.forAction(this.contextPath.addActionOrFunctionSegment("microsoft.graph.remove"), Site.class, _parameters);
}
@Function(name = "delta")
@JsonIgnore
public CollectionPageNonEntityRequest delta() {
Map _parameters = ParameterMap.empty();
return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("microsoft.graph.delta"), Site.class, _parameters);
}
@Function(name = "delta")
@JsonIgnore
public CollectionPageNonEntityRequest delta_Function(String token) {
Preconditions.checkNotNull(token, "token cannot be null");
Map _parameters = ParameterMap
.put("token", "Edm.String", Checks.checkIsAscii(token))
.build();
return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("microsoft.graph.delta"), Site.class, _parameters);
}
@Function(name = "getAllSites")
@JsonIgnore
public CollectionPageNonEntityRequest getAllSites() {
Map _parameters = ParameterMap.empty();
return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("microsoft.graph.getAllSites"), Site.class, _parameters);
}
}