All Downloads are FREE. Search and download functionalities are using the official Maven repository.

odata.msgraph.client.entity.request.DirectoryRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.entity.request;

import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.NameValue;

import java.lang.Object;
import java.lang.String;
import java.util.Optional;

import odata.msgraph.client.entity.Directory;
import odata.msgraph.client.entity.collection.request.AdministrativeUnitCollectionRequest;
import odata.msgraph.client.entity.collection.request.AttributeSetCollectionRequest;
import odata.msgraph.client.entity.collection.request.CustomSecurityAttributeDefinitionCollectionRequest;
import odata.msgraph.client.entity.collection.request.DeviceLocalCredentialInfoCollectionRequest;
import odata.msgraph.client.entity.collection.request.DirectoryObjectCollectionRequest;
import odata.msgraph.client.entity.collection.request.IdentityProviderBaseCollectionRequest;
import odata.msgraph.client.entity.collection.request.OnPremisesDirectorySynchronizationCollectionRequest;

@JsonIgnoreType
public class DirectoryRequest extends EntityRequest {

    public DirectoryRequest(ContextPath contextPath, Optional value) {
        super(Directory.class, contextPath, value, false);
    }

    public DeviceLocalCredentialInfoRequest deviceLocalCredentials(String id) {
        return new DeviceLocalCredentialInfoRequest(contextPath.addSegment("deviceLocalCredentials").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public DeviceLocalCredentialInfoCollectionRequest deviceLocalCredentials() {
        return new DeviceLocalCredentialInfoCollectionRequest(
                        contextPath.addSegment("deviceLocalCredentials"), Optional.empty());
    }

    public AdministrativeUnitRequest administrativeUnits(String id) {
        return new AdministrativeUnitRequest(contextPath.addSegment("administrativeUnits").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public AdministrativeUnitCollectionRequest administrativeUnits() {
        return new AdministrativeUnitCollectionRequest(
                        contextPath.addSegment("administrativeUnits"), Optional.empty());
    }

    public AttributeSetRequest attributeSets(String id) {
        return new AttributeSetRequest(contextPath.addSegment("attributeSets").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public AttributeSetCollectionRequest attributeSets() {
        return new AttributeSetCollectionRequest(
                        contextPath.addSegment("attributeSets"), Optional.empty());
    }

    public CustomSecurityAttributeDefinitionRequest customSecurityAttributeDefinitions(String id) {
        return new CustomSecurityAttributeDefinitionRequest(contextPath.addSegment("customSecurityAttributeDefinitions").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public CustomSecurityAttributeDefinitionCollectionRequest customSecurityAttributeDefinitions() {
        return new CustomSecurityAttributeDefinitionCollectionRequest(
                        contextPath.addSegment("customSecurityAttributeDefinitions"), Optional.empty());
    }

    public DirectoryObjectRequest deletedItems(String id) {
        return new DirectoryObjectRequest(contextPath.addSegment("deletedItems").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public DirectoryObjectCollectionRequest deletedItems() {
        return new DirectoryObjectCollectionRequest(
                        contextPath.addSegment("deletedItems"), Optional.empty());
    }

    public IdentityProviderBaseRequest federationConfigurations(String id) {
        return new IdentityProviderBaseRequest(contextPath.addSegment("federationConfigurations").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public IdentityProviderBaseCollectionRequest federationConfigurations() {
        return new IdentityProviderBaseCollectionRequest(
                        contextPath.addSegment("federationConfigurations"), Optional.empty());
    }

    public OnPremisesDirectorySynchronizationRequest onPremisesSynchronization(String id) {
        return new OnPremisesDirectorySynchronizationRequest(contextPath.addSegment("onPremisesSynchronization").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public OnPremisesDirectorySynchronizationCollectionRequest onPremisesSynchronization() {
        return new OnPremisesDirectorySynchronizationCollectionRequest(
                        contextPath.addSegment("onPremisesSynchronization"), Optional.empty());
    }

}