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

odata.msgraph.client.entity.request.OrganizationRequest 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.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ActionRequestReturningNonCollection;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;

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

import odata.msgraph.client.entity.Organization;
import odata.msgraph.client.entity.collection.request.CertificateBasedAuthConfigurationCollectionRequest;
import odata.msgraph.client.entity.collection.request.ExtensionCollectionRequest;

@JsonIgnoreType
public class OrganizationRequest extends EntityRequest {

    public OrganizationRequest(ContextPath contextPath, Optional value) {
        super(Organization.class, contextPath, value, false);
    }

    public OrganizationalBrandingRequest branding() {
        return new OrganizationalBrandingRequest(contextPath.addSegment("branding"), Optional.empty());
    }

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

    public CertificateBasedAuthConfigurationCollectionRequest certificateBasedAuthConfiguration() {
        return new CertificateBasedAuthConfigurationCollectionRequest(
                        contextPath.addSegment("certificateBasedAuthConfiguration"), Optional.empty());
    }

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

    public ExtensionCollectionRequest extensions() {
        return new ExtensionCollectionRequest(
                        contextPath.addSegment("extensions"), Optional.empty());
    }

    @Action(name = "setMobileDeviceManagementAuthority")
    @JsonIgnore
    public ActionRequestReturningNonCollection setMobileDeviceManagementAuthority() {
        Map _parameters = ParameterMap.empty();
        return new ActionRequestReturningNonCollection(this.contextPath.addActionOrFunctionSegment("microsoft.graph.setMobileDeviceManagementAuthority"), Integer.class, _parameters);
    }

}