Class ResourceOperation
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ResourceOperation
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ResourceOperation extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Describes the resourceOperation resource (entity) of the Microsoft Graph API ( REST), which supports Intune workflows related to role-based access control ( RBAC).”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceOperation.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringactionNameprotected Stringdescriptionprotected BooleanenabledForScopeValidationprotected Stringresourceprotected StringresourceName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceOperation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceOperation.BuilderbuilderResourceOperation()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getActionName()“Type of action this operation is going to perform.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDescription()“Description of the resource operation.Optional<Boolean>getEnabledForScopeValidation()“Determines whether the Permission is validated for Scopes defined per Role Assignment.Optional<String>getResource()“Resource category to which this Operation belongs.Optional<String>getResourceName()“Name of the Resource this operation is performed on.”com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<String>getScopesForUser(String userid)com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ResourceOperationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ResourceOperationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ResourceOperationwithActionName(String actionName)Returns an immutable copy ofthiswith just theactionNamefield changed.ResourceOperationwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.ResourceOperationwithEnabledForScopeValidation(Boolean enabledForScopeValidation)Returns an immutable copy ofthiswith just theenabledForScopeValidationfield changed.ResourceOperationwithResource(String resource)Returns an immutable copy ofthiswith just theresourcefield changed.ResourceOperationwithResourceName(String resourceName)Returns an immutable copy ofthiswith just theresourceNamefield changed.ResourceOperationwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderResourceOperation
public static ResourceOperation.Builder builderResourceOperation()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getActionName
public Optional<String> getActionName()
“Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible.”- Returns:
- property actionName
-
withActionName
public ResourceOperation withActionName(String actionName)
Returns an immutable copy ofthiswith just theactionNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible.”
- Parameters:
actionName- new value ofactionNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactionNamefield changed
-
getDescription
public Optional<String> getDescription()
“Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal.”- Returns:
- property description
-
withDescription
public ResourceOperation withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getEnabledForScopeValidation
public Optional<Boolean> getEnabledForScopeValidation()
“Determines whether the Permission is validated for Scopes defined per Role Assignment. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property enabledForScopeValidation
-
withEnabledForScopeValidation
public ResourceOperation withEnabledForScopeValidation(Boolean enabledForScopeValidation)
Returns an immutable copy ofthiswith just theenabledForScopeValidationfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Determines whether the Permission is validated for Scopes defined per Role Assignment. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
enabledForScopeValidation- new value ofenabledForScopeValidationfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenabledForScopeValidationfield changed
-
getResource
public Optional<String> getResource()
“Resource category to which this Operation belongs. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property resource
-
withResource
public ResourceOperation withResource(String resource)
Returns an immutable copy ofthiswith just theresourcefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Resource category to which this Operation belongs. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
resource- new value ofresourcefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourcefield changed
-
getResourceName
public Optional<String> getResourceName()
“Name of the Resource this operation is performed on.”- Returns:
- property resourceName
-
withResourceName
public ResourceOperation withResourceName(String resourceName)
Returns an immutable copy ofthiswith just theresourceNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Name of the Resource this operation is performed on.”
- Parameters:
resourceName- new value ofresourceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourceNamefield changed
-
withUnmappedField
public ResourceOperation withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ResourceOperation patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ResourceOperation put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
getScopesForUser
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<String> getScopesForUser(String userid)
-
-