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.
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.http.BaseCollectionPage;
import com.microsoft.graph.models.PublicError;
import com.microsoft.graph.models.Root;
import com.microsoft.graph.models.SharepointIds;
import com.microsoft.graph.models.SiteCollection;
import com.microsoft.graph.models.ItemAnalytics;
import com.microsoft.graph.models.Drive;
import com.microsoft.graph.termstore.models.Store;
import com.microsoft.graph.models.Onenote;
import com.microsoft.graph.models.BaseItem;
import com.microsoft.graph.requests.ContentTypeCollectionPage;
import com.microsoft.graph.requests.BaseItemCollectionPage;
import com.microsoft.graph.requests.ListCollectionPage;
import com.microsoft.graph.requests.RichLongRunningOperationCollectionPage;
import com.microsoft.graph.requests.PermissionCollectionPage;
import com.microsoft.graph.requests.SiteCollectionPage;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Site.
*/
public class Site extends BaseItem implements IJsonBackedObject {
/**
* The Display Name.
* The full title for the site. Read-only.
*/
@SerializedName(value = "displayName", alternate = {"DisplayName"})
@Expose
@Nullable
public String displayName;
/**
* The Error.
*
*/
@SerializedName(value = "error", alternate = {"Error"})
@Expose
@Nullable
public PublicError error;
/**
* The Is Personal Site.
*
*/
@SerializedName(value = "isPersonalSite", alternate = {"IsPersonalSite"})
@Expose
@Nullable
public Boolean isPersonalSite;
/**
* The Root.
* If present, indicates that this is the root site in the site collection. Read-only.
*/
@SerializedName(value = "root", alternate = {"Root"})
@Expose
@Nullable
public Root root;
/**
* The Sharepoint Ids.
* Returns identifiers useful for SharePoint REST compatibility. Read-only.
*/
@SerializedName(value = "sharepointIds", alternate = {"SharepointIds"})
@Expose
@Nullable
public SharepointIds sharepointIds;
/**
* The Site Collection.
* Provides details about the site's site collection. Available only on the root site. Read-only.
*/
@SerializedName(value = "siteCollection", alternate = {"SiteCollection"})
@Expose
@Nullable
public SiteCollection siteCollection;
/**
* The Analytics.
* Analytics about the view activities that took place in this site.
*/
@SerializedName(value = "analytics", alternate = {"Analytics"})
@Expose
@Nullable
public ItemAnalytics analytics;
/**
* The Columns.
* The collection of column definitions reusable across lists under this site.
*/
@SerializedName(value = "columns", alternate = {"Columns"})
@Expose
@Nullable
public com.microsoft.graph.requests.ColumnDefinitionCollectionPage columns;
/**
* The Content Types.
* The collection of content types defined for this site.
*/
@SerializedName(value = "contentTypes", alternate = {"ContentTypes"})
@Expose
@Nullable
public com.microsoft.graph.requests.ContentTypeCollectionPage contentTypes;
/**
* The Drive.
* The default drive (document library) for this site.
*/
@SerializedName(value = "drive", alternate = {"Drive"})
@Expose
@Nullable
public Drive drive;
/**
* The Drives.
* The collection of drives (document libraries) under this site.
*/
@SerializedName(value = "drives", alternate = {"Drives"})
@Expose
@Nullable
public com.microsoft.graph.requests.DriveCollectionPage drives;
/**
* The External Columns.
*
*/
@Nullable
public com.microsoft.graph.requests.ColumnDefinitionCollectionPage externalColumns;
/**
* The Items.
* Used to address any item contained in this site. This collection can't be enumerated.
*/
@SerializedName(value = "items", alternate = {"Items"})
@Expose
@Nullable
public com.microsoft.graph.requests.BaseItemCollectionPage items;
/**
* The Lists.
* The collection of lists under this site.
*/
@SerializedName(value = "lists", alternate = {"Lists"})
@Expose
@Nullable
public com.microsoft.graph.requests.ListCollectionPage lists;
/**
* The Operations.
* The collection of long-running operations on the site.
*/
@SerializedName(value = "operations", alternate = {"Operations"})
@Expose
@Nullable
public com.microsoft.graph.requests.RichLongRunningOperationCollectionPage operations;
/**
* The Permissions.
* The permissions associated with the site. Nullable.
*/
@SerializedName(value = "permissions", alternate = {"Permissions"})
@Expose
@Nullable
public com.microsoft.graph.requests.PermissionCollectionPage permissions;
/**
* The Sites.
* The collection of the sub-sites under this site.
*/
@SerializedName(value = "sites", alternate = {"Sites"})
@Expose
@Nullable
public com.microsoft.graph.requests.SiteCollectionPage sites;
/**
* The Term Store.
* The default termStore under this site.
*/
@SerializedName(value = "termStore", alternate = {"TermStore"})
@Expose
@Nullable
public Store termStore;
/**
* The Term Stores.
* The collection of termStores under this site.
*/
@SerializedName(value = "termStores", alternate = {"TermStores"})
@Expose
@Nullable
public com.microsoft.graph.termstore.requests.StoreCollectionPage termStores;
/**
* The Onenote.
* Calls the OneNote service for notebook related operations.
*/
@SerializedName(value = "onenote", alternate = {"Onenote"})
@Expose
@Nullable
public Onenote onenote;
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
if (json.has("columns")) {
columns = serializer.deserializeObject(json.get("columns"), com.microsoft.graph.requests.ColumnDefinitionCollectionPage.class);
}
if (json.has("contentTypes")) {
contentTypes = serializer.deserializeObject(json.get("contentTypes"), com.microsoft.graph.requests.ContentTypeCollectionPage.class);
}
if (json.has("drives")) {
drives = serializer.deserializeObject(json.get("drives"), com.microsoft.graph.requests.DriveCollectionPage.class);
}
if (json.has("externalColumns")) {
externalColumns = serializer.deserializeObject(json.get("externalColumns"), com.microsoft.graph.requests.ColumnDefinitionCollectionPage.class);
}
if (json.has("items")) {
items = serializer.deserializeObject(json.get("items"), com.microsoft.graph.requests.BaseItemCollectionPage.class);
}
if (json.has("lists")) {
lists = serializer.deserializeObject(json.get("lists"), com.microsoft.graph.requests.ListCollectionPage.class);
}
if (json.has("operations")) {
operations = serializer.deserializeObject(json.get("operations"), com.microsoft.graph.requests.RichLongRunningOperationCollectionPage.class);
}
if (json.has("permissions")) {
permissions = serializer.deserializeObject(json.get("permissions"), com.microsoft.graph.requests.PermissionCollectionPage.class);
}
if (json.has("sites")) {
sites = serializer.deserializeObject(json.get("sites"), com.microsoft.graph.requests.SiteCollectionPage.class);
}
if (json.has("termStores")) {
termStores = serializer.deserializeObject(json.get("termStores"), com.microsoft.graph.termstore.requests.StoreCollectionPage.class);
}
}
}