Class Operation


  • public final class Operation
    extends Object
    REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API.
    • Constructor Detail

      • Operation

        public Operation()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
        Returns:
        the name value.
      • isDataAction

        public Boolean isDataAction()
        Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
        Returns:
        the isDataAction value.
      • display

        public OperationDisplay display()
        Get the display property: Localized display information for this particular operation.
        Returns:
        the display value.
      • withDisplay

        public Operation withDisplay​(OperationDisplay display)
        Set the display property: Localized display information for this particular operation.
        Parameters:
        display - the display value to set.
        Returns:
        the Operation object itself.
      • origin

        public Origin origin()
        Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system".
        Returns:
        the origin value.
      • actionType

        public ActionType actionType()
        Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
        Returns:
        the actionType value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.