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

odata.msgraph.client.entity.collection.request.ManagedAppRegistrationCollectionRequest Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
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.Function;
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.Map;
import java.util.Optional;

import odata.msgraph.client.entity.ManagedAppRegistration;
import odata.msgraph.client.entity.request.ManagedAppOperationRequest;
import odata.msgraph.client.entity.request.ManagedAppPolicyRequest;
import odata.msgraph.client.entity.request.ManagedAppRegistrationRequest;

public class ManagedAppRegistrationCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public ManagedAppRegistrationCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, ManagedAppRegistration.class, cp -> new ManagedAppRegistrationRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

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

    public ManagedAppPolicyCollectionRequest appliedPolicies() {
        return new ManagedAppPolicyCollectionRequest(contextPath.addSegment("appliedPolicies"), Optional.empty());
    }

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

    public ManagedAppPolicyCollectionRequest intendedPolicies() {
        return new ManagedAppPolicyCollectionRequest(contextPath.addSegment("intendedPolicies"), Optional.empty());
    }

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

    public ManagedAppOperationCollectionRequest operations() {
        return new ManagedAppOperationCollectionRequest(contextPath.addSegment("operations"), Optional.empty());
    }

    @Function(name = "getUserIdsWithFlaggedAppRegistration")
    @JsonIgnore
    public CollectionPageNonEntityRequest getUserIdsWithFlaggedAppRegistration() {
        Map _parameters = ParameterMap.empty();
        return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("microsoft.graph.getUserIdsWithFlaggedAppRegistration"), String.class, _parameters);
    }

}