public class ResourceOperation extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceOperation.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
actionName |
protected String |
description |
protected Boolean |
enabledForScopeValidation |
protected String |
resource |
protected String |
resourceName |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
ResourceOperation() |
| Modifier and Type | Method and Description |
|---|---|
static ResourceOperation.Builder |
builderResourceOperation()
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.ChangedFields |
getChangedFields() |
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.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
ResourceOperation |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
ResourceOperation |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
ResourceOperation |
withActionName(String actionName)
Returns an immutable copy of
this with just the actionName field
changed. |
ResourceOperation |
withDescription(String description)
Returns an immutable copy of
this with just the description
field changed. |
ResourceOperation |
withEnabledForScopeValidation(Boolean enabledForScopeValidation)
Returns an immutable copy of
this with just the enabledForScopeValidation field changed. |
ResourceOperation |
withResource(String resource)
Returns an immutable copy of
this with just the resource field
changed. |
ResourceOperation |
withResourceName(String resourceName)
Returns an immutable copy of
this with just the resourceName
field changed. |
protected String resource
protected String resourceName
protected String actionName
protected String description
protected Boolean enabledForScopeValidation
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static ResourceOperation.Builder builderResourceOperation()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getResource()
public ResourceOperation withResource(String resource)
this with just the resource field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Resource category to which this Operation belongs.”
resource - new value of resource field (as defined in service metadata)this with just the resource field changedpublic Optional<String> getResourceName()
public ResourceOperation withResourceName(String resourceName)
this with just the resourceName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Name of the Resource this operation is performed on.”
resourceName - new value of resourceName field (as defined in service metadata)this with just the resourceName field changedpublic Optional<String> getActionName()
public ResourceOperation withActionName(String actionName)
this with just the actionName field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.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.”
actionName - new value of actionName field (as defined in service metadata)this with just the actionName field changedpublic Optional<String> getDescription()
public ResourceOperation withDescription(String description)
this with just the description
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
description - new value of description field (as defined in service metadata)this with just the description field changedpublic Optional<Boolean> getEnabledForScopeValidation()
public ResourceOperation withEnabledForScopeValidation(Boolean enabledForScopeValidation)
this with just the enabledForScopeValidation field changed. Field description below. The field
name is also added to an internal map of changed fields in the returned object
so that when this.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.”
enabledForScopeValidation - new value of enabledForScopeValidation field (as defined in service metadata)this with just the enabledForScopeValidation field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic ResourceOperation patch()
this with changed fields reset.public ResourceOperation put()
this
with changed fields reset (they were ignored anyway).public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<String> getScopesForUser(String userid)
Copyright © 2018–2020. All rights reserved.