Пример #1
0
 /// <summary>
 /// Initializes a new instance of the Operation class.
 /// </summary>
 /// <param name="name">The name of the operation, as per Resource-Based
 /// Access Control (RBAC). Examples:
 /// "Microsoft.Compute/virtualMachines/write",
 /// "Microsoft.Compute/virtualMachines/capture/action"</param>
 /// <param name="isDataAction">Whether the operation applies to
 /// data-plane. This is "true" for data-plane operations and "false"
 /// for ARM/control-plane operations.</param>
 /// <param name="display">Localized display information for this
 /// particular operation.</param>
 /// <param name="origin">The intended executor of the operation; as in
 /// Resource Based Access Control (RBAC) and audit logs UX. Default
 /// value is "user,system". Possible values include: 'user', 'system',
 /// 'user,system'</param>
 /// <param name="actionType">Enum. Indicates the action type.
 /// "Internal" refers to actions that are for internal only APIs.
 /// Possible values include: 'Internal'</param>
 public Operation(string name = default(string), bool?isDataAction = default(bool?), OperationDisplay display = default(OperationDisplay), string origin = default(string), string actionType = default(string))
 {
     Name         = name;
     IsDataAction = isDataAction;
     Display      = display;
     Origin       = origin;
     ActionType   = actionType;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the OperationDetail class.
 /// </summary>
 /// <param name="name">Name of the operation</param>
 /// <param name="isDataAction">Indicates whether the operation is a
 /// data action</param>
 /// <param name="display">Display of the operation</param>
 /// <param name="origin">Origin of the operation</param>
 /// <param name="properties">Properties of the operation</param>
 public OperationDetail(string name = default(string), bool?isDataAction = default(bool?), OperationDisplay display = default(OperationDisplay), string origin = default(string), object properties = default(object))
 {
     Name         = name;
     IsDataAction = isDataAction;
     Display      = display;
     Origin       = origin;
     Properties   = properties;
     CustomInit();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the Operation class.
 /// </summary>
 /// <param name="name">Name of the operation.</param>
 /// <param name="display">Operation properties.</param>
 public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay))
 {
     Name    = name;
     Display = display;
     CustomInit();
 }