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

odata.msgraph.client.beta.managed.tenants.entity.request.ManagementActionRequest Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.annotation.Action;
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.Map;
import java.util.Optional;

import odata.msgraph.client.beta.managed.tenants.complex.ManagementActionDeploymentStatus;
import odata.msgraph.client.beta.managed.tenants.entity.ManagementAction;

@JsonIgnoreType
public class ManagementActionRequest extends EntityRequest {

    public ManagementActionRequest(ContextPath contextPath, Optional value) {
        super(ManagementAction.class, contextPath, value, false);
    }

    @Action(name = "apply")
    @JsonIgnore
    public ActionRequestReturningNonCollectionUnwrapped apply(String tenantId, String tenantGroupId, String managementTemplateId) {
        Map _parameters = ParameterMap
            .put("tenantId", "Edm.String", Checks.checkIsAscii(tenantId))
            .put("tenantGroupId", "Edm.String", Checks.checkIsAscii(tenantGroupId))
            .put("managementTemplateId", "Edm.String", Checks.checkIsAscii(managementTemplateId))
            .build();
        return new ActionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("microsoft.graph.managedTenants.apply"), ManagementActionDeploymentStatus.class, _parameters);
    }

}