コード例 #1
0
        public virtual JsonResult ChangeGlobalActionOrRoles(string workspace, RoleEnum?role, ActionEnum[] actionEnum)
        {
            _cacheStorageService.Remove("AuthorizationInfo");

            var auth = new AuthorizationOperationInfo()
            {
                ActionList = new List <ActionEnum>(),
                RoleList   = new List <RoleEnum>(),
                UserName   = IDBContext.Current.UserLoginName
            };

            if (role.HasValue)
            {
                auth.RoleList.Add(role.Value);
            }

            for (var i = 0; i < actionEnum.Count(); i++)
            {
                if (!auth.ActionList.Any(x => x == actionEnum[i]))
                {
                    auth.ActionList.Add(actionEnum[i]);
                }
            }

            var authPermission = new AuthorizationInfo();

            authPermission.GlobalAuthorization = auth;

            _cacheStorageService.Add("AuthorizationInfo", authPermission);

            return(Json(new { IsValid = true, ErrorMessage = "Permissions was changed" }));
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DetailedWidgetParticipantSetInfo" /> class.
 /// </summary>
 /// <param name="Id">The unique identifier of the participant set. This cannot be changed as part of the PUT call..</param>
 /// <param name="MemberInfos">Array of ParticipantInfo objects, containing participant-specific data (e.g. email). All participants in the array belong to the same set.</param>
 /// <param name="Order">Index indicating sequential signing group (specified for hybrid routing). This cannot be changed as part of the PUT call..</param>
 /// <param name="Role">Role assumed by all participants in the set (signer, approver etc.). This cannot be changed as part of the PUT call..</param>
 public DetailedWidgetParticipantSetInfo(string Id = default(string), List <DetailedParticipantInfo> MemberInfos = default(List <DetailedParticipantInfo>), int?Order = default(int?), RoleEnum?Role = default(RoleEnum?))
 {
     this.Id          = Id;
     this.MemberInfos = MemberInfos;
     this.Order       = Order;
     this.Role        = Role;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OracleDataGuardInfo" /> class.
 /// </summary>
 /// <param name="role">Specifies the role of the DataGuard database. Specifies the role of the DataGuard database.  A Data Guard configuration contains one production database, also referred to as the primary database, that functions in the primary role. The primary database can be either a single-instance Oracle database or an Oracle Real Application Clusters database.  A standby database is a transactionally consistent copy of the primary database. Similar to a primary database, a standby database can be either a single-instance Oracle database or an Oracle Real Application Clusters database. &#39;kPrimary&#39; indicates that the current database is primary database. &#39;kStandby&#39; indicates that the current database is standby database..</param>
 /// <param name="type">Specifies the type of standby database. Specifies the type of standby database. &#39;kPhysical&#39; indicates that the current database provides a physically identical copy of the primary database, with on disk structures identical to the primary database on a block-for-block basis. It is kept synchronized with the primary database, though Redo Apply, which recovers the redo data received from the primary database and applies the redo to the physical standby database. &#39;kLogical&#39; indicates that the current database provides the same logical information as the production database, although the physical structure can be different. It is kept synchronized with the primary database thorugh SQL Apply, which transforms the data in the redo received from the primary database into SQL statements and then executing the SQL statements on the standby database. &#39;kSnapshot&#39; indicates that the current database is a fully updateable standby created by converting a physical standby database into a snasphot standby database. It receives and archives but does not apply redo data from a primary database..</param>
 public OracleDataGuardInfo(RoleEnum?role = default(RoleEnum?), TypeEnum?type = default(TypeEnum?))
 {
     this.Role = role;
     this.Type = type;
     this.Role = role;
     this.Type = type;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MyFuturesTrade" /> class.
 /// </summary>
 /// <param name="id">Trade ID.</param>
 /// <param name="createTime">Trading time.</param>
 /// <param name="contract">Futures contract.</param>
 /// <param name="orderId">Order ID related.</param>
 /// <param name="size">Trading size.</param>
 /// <param name="price">Trading price.</param>
 /// <param name="role">Trade role. Available values are &#x60;taker&#x60; and &#x60;maker&#x60;.</param>
 public MyFuturesTrade(long id = default(long), double createTime = default(double), string contract = default(string), string orderId = default(string), long size = default(long), string price = default(string), RoleEnum?role = default(RoleEnum?))
 {
     this.Id         = id;
     this.CreateTime = createTime;
     this.Contract   = contract;
     this.OrderId    = orderId;
     this.Size       = size;
     this.Price      = price;
     this.Role       = role;
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParticipantSetInfo" /> class.
 /// </summary>
 /// <param name="Label">The unique label of a participant set.&lt;br&gt;For custom workflows, label specified in the participation set should map it to the participation step in the custom workflow..</param>
 /// <param name="MemberInfos">Array of ParticipantInfo objects, containing participant-specific data (e.g. email). All participants in the array belong to the same set.</param>
 /// <param name="Name">Name of the participant set (it can be empty, but needs not to be unique in a single agreement). Maximum no of characters in participant set name is restricted to 255.</param>
 /// <param name="Order">Index indicating position at which signing group needs to sign. Signing group to sign at first place is assigned a 1 index. Different signingOrder specified in input should form a valid consecutive increasing sequence of integers. Otherwise signingOrder will be considered invalid. No signingOrder should be specified for SHARE role.</param>
 /// <param name="PrivateMessage">Participant set&#39;s private message - all participants in the set will receive the same message.</param>
 /// <param name="Role">Role assumed by all participants in the set (signer, approver etc.).</param>
 /// <param name="VisiblePages">When you enable limited document visibility (documentVisibilityEnabled), you can specify which file (fileInfo) should be made visible to which specific participant set.&lt;br&gt;Specify one or more label values of a fileInfos element.&lt;br&gt;Each signer participant sets must contain at least one required signature field in at least one visible file included in this API call; if not a page with a signature field is automatically appended for any missing participant sets. If there is a possibility that one or more participant sets do not have a required signature field in the files included in the API call, all signer participant sets should include a special index value of &#39;0&#39; to make this automatically appended signature page visible to the signer. Not doing so may result in an error. For all other roles, you may omit this value to exclude this page..</param>
 public ParticipantSetInfo(string Label = default(string), List <ParticipantSetMemberInfo> MemberInfos = default(List <ParticipantSetMemberInfo>), string Name = default(string), int?Order = default(int?), string PrivateMessage = default(string), RoleEnum?Role = default(RoleEnum?), List <string> VisiblePages = default(List <string>))
 {
     this.Label          = Label;
     this.MemberInfos    = MemberInfos;
     this.Name           = Name;
     this.Order          = Order;
     this.PrivateMessage = PrivateMessage;
     this.Role           = Role;
     this.VisiblePages   = VisiblePages;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="APICredentialsOrganization" /> class.
 /// </summary>
 /// <param name="applicationId">applicationId.</param>
 /// <param name="created">created.</param>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="organizationId">organizationId.</param>
 /// <param name="role">role.</param>
 /// <param name="secret">secret.</param>
 public APICredentialsOrganization(Guid?applicationId = default(Guid?), DateTime?created = default(DateTime?), Guid?id = default(Guid?), string name = default(string), Guid?organizationId = default(Guid?), RoleEnum?role = default(RoleEnum?), string secret = default(string))
 {
     this.ApplicationId  = applicationId;
     this.Created        = created;
     this.Id             = id;
     this.Name           = name;
     this.OrganizationId = organizationId;
     this.Role           = role;
     this.Secret         = secret;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SystemInfo" /> class.
 /// </summary>
 /// <param name="Version">Version.</param>
 /// <param name="DisplayName">DisplayName.</param>
 /// <param name="Description">Description.</param>
 /// <param name="Role">Role.</param>
 /// <param name="Defaults">Defaults.</param>
 /// <param name="RssFeed">RssFeed.</param>
 /// <param name="SupportUrl">SupportUrl.</param>
 /// <param name="AssetsUrl">AssetsUrl.</param>
 public SystemInfo(string Version = default(string), string DisplayName = default(string), string Description = default(string), RoleEnum?Role = default(RoleEnum?), SystemInfoDefaults Defaults = default(SystemInfoDefaults), string RssFeed = default(string), string SupportUrl = default(string), string AssetsUrl = default(string))
 {
     this.Version     = Version;
     this.DisplayName = DisplayName;
     this.Description = Description;
     this.Role        = Role;
     this.Defaults    = Defaults;
     this.RssFeed     = RssFeed;
     this.SupportUrl  = SupportUrl;
     this.AssetsUrl   = AssetsUrl;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceOwner" /> class.
 /// </summary>
 /// <param name="role">role (default to RoleEnum.Owner).</param>
 public ResourceOwner(RoleEnum?role = RoleEnum.Owner, string oauthID = default(string), string name = default(string), StatusEnum?status = StatusEnum.Active, UserLinks links = default(UserLinks)) : base(oauthID, name, status, links)
 {
     // use default value if no "role" provided
     if (role == null)
     {
         this.Role = RoleEnum.Owner;
     }
     else
     {
         this.Role = role;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateIpConfigParameters" /> class.
 /// </summary>
 /// <param name="ips">Specifies the interface ips..</param>
 /// <param name="mtu">Specifies the interface mtu..</param>
 /// <param name="name">Specifies the interface name. (required).</param>
 /// <param name="role">Specifies the interface role. &#39;kPrimary&#39; indicates a primary role. &#39;kSecondary&#39; indicates a secondary role..</param>
 /// <param name="subnetGateway">Specifies the interface gateway..</param>
 /// <param name="subnetMask">Specifies the interface subnet mask..</param>
 public CreateIpConfigParameters(List <string> ips = default(List <string>), int?mtu = default(int?), string name = default(string), RoleEnum?role = default(RoleEnum?), string subnetGateway = default(string), string subnetMask = default(string))
 {
     this.Ips           = ips;
     this.Mtu           = mtu;
     this.Name          = name;
     this.Role          = role;
     this.SubnetGateway = subnetGateway;
     this.SubnetMask    = subnetMask;
     this.Ips           = ips;
     this.Mtu           = mtu;
     this.Role          = role;
     this.SubnetGateway = subnetGateway;
     this.SubnetMask    = subnetMask;
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PutFleetsFleetIdMembersMemberIdMovement" /> class.
 /// </summary>
 /// <param name="Role">- If a character is moved to the &#x60;fleet_commander&#x60; role, neither &#x60;wing_id&#x60; or &#x60;squad_id&#x60; should be specified - If a character is moved to the &#x60;wing_commander&#x60; role, only &#x60;wing_id&#x60; should be specified - If a character is moved to the &#x60;squad_commander&#x60; role, both &#x60;wing_id&#x60; and &#x60;squad_id&#x60; should be specified - If a character is moved to the &#x60;squad_member&#x60; role, both &#x60;wing_id&#x60; and &#x60;squad_id&#x60; should be specified  (required).</param>
 /// <param name="SquadId">squad_id integer.</param>
 /// <param name="WingId">wing_id integer.</param>
 public PutFleetsFleetIdMembersMemberIdMovement(RoleEnum?Role = default(RoleEnum?), long?SquadId = default(long?), long?WingId = default(long?))
 {
     // to ensure "Role" is required (not null)
     if (Role == null)
     {
         throw new InvalidDataException("Role is a required property for PutFleetsFleetIdMembersMemberIdMovement and cannot be null");
     }
     else
     {
         this.Role = Role;
     }
     this.SquadId = SquadId;
     this.WingId  = WingId;
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Trade" /> class.
 /// </summary>
 /// <param name="id">Trade ID.</param>
 /// <param name="createTime">Trading time.</param>
 /// <param name="createTimeMs">Trading time, with millisecond precision.</param>
 /// <param name="side">Order side.</param>
 /// <param name="role">Trade role.</param>
 /// <param name="amount">Trade amount.</param>
 /// <param name="price">Order price.</param>
 /// <param name="orderId">Related order ID. No value in public endpoints.</param>
 /// <param name="fee">Fee deducted. No value in public endpoints.</param>
 /// <param name="feeCurrency">Fee currency unit. No value in public endpoints.</param>
 /// <param name="pointFee">Point used to deduct fee.</param>
 /// <param name="gtFee">GT used to deduct fee.</param>
 public Trade(string id = default(string), string createTime = default(string), string createTimeMs = default(string), SideEnum?side = default(SideEnum?), RoleEnum?role = default(RoleEnum?), string amount = default(string), string price = default(string), string orderId = default(string), string fee = default(string), string feeCurrency = default(string), string pointFee = default(string), string gtFee = default(string))
 {
     this.Id           = id;
     this.CreateTime   = createTime;
     this.CreateTimeMs = createTimeMs;
     this.Side         = side;
     this.Role         = role;
     this.Amount       = amount;
     this.Price        = price;
     this.OrderId      = orderId;
     this.Fee          = fee;
     this.FeeCurrency  = feeCurrency;
     this.PointFee     = pointFee;
     this.GtFee        = gtFee;
 }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Participant" /> class.
 /// </summary>
 /// <param name="Type">Type (required).</param>
 /// <param name="User">User.</param>
 /// <param name="Role">Role.</param>
 /// <param name="Approved">Approved.</param>
 /// <param name="ParticipatedOn">The ISO8601 timestamp of the participant&#39;s action. For approvers, this is the time of their approval. For commenters and pull request reviewers who are not approvers, this is the time they last commented, or null if they have not commented..</param>
 public Participant(string Type = default(string), User User = default(User), RoleEnum?Role = default(RoleEnum?), bool?Approved = default(bool?), DateTime?ParticipatedOn = default(DateTime?))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Participant and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.User           = User;
     this.Role           = Role;
     this.Approved       = Approved;
     this.ParticipatedOn = ParticipatedOn;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectEmployeeForm" /> class.
        /// </summary>
        /// <param name="contactId">contact id of the given project employee (required).</param>
        /// <param name="contactSphere">contactSphere.</param>
        /// <param name="role">role in the project, please chek your catalog in the Scopevisio desktop client for allowable values.</param>
        /// <param name="hourlyRate">hourly rate.</param>
        /// <param name="dailyRate">daily rate.</param>
        public ProjectEmployeeForm(long contactId = default(long), ContactSphereEnum?contactSphere = default(ContactSphereEnum?), RoleEnum?role = default(RoleEnum?), decimal hourlyRate = default(decimal), decimal dailyRate = default(decimal))
        {
            // to ensure "contactId" is required (not null)
            if (contactId == null)
            {
                throw new InvalidDataException("contactId is a required property for ProjectEmployeeForm and cannot be null");
            }
            else
            {
                this.ContactId = contactId;
            }

            this.ContactSphere = contactSphere;
            this.Role          = role;
            this.HourlyRate    = hourlyRate;
            this.DailyRate     = dailyRate;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserRegistrationRequest" /> class.
 /// </summary>
 /// <param name="allowedApplicationIds">allowedApplicationIds.</param>
 /// <param name="attributes">attributes.</param>
 /// <param name="awsCustomerId">awsCustomerId.</param>
 /// <param name="email">email.</param>
 /// <param name="expirationDate">expirationDate.</param>
 /// <param name="industry">industry.</param>
 /// <param name="names">names.</param>
 /// <param name="organizationName">organizationName.</param>
 /// <param name="password">password.</param>
 /// <param name="position">position.</param>
 /// <param name="role">role.</param>
 /// <param name="serverName">serverName.</param>
 /// <param name="subscriptionPlanCode">subscriptionPlanCode.</param>
 /// <param name="timezone">timezone.</param>
 public UserRegistrationRequest(List <Guid?> allowedApplicationIds = default(List <Guid?>), Dictionary <string, string> attributes = default(Dictionary <string, string>), string awsCustomerId = default(string), string email = default(string), string expirationDate = default(string), string industry = default(string), string names = default(string), string organizationName = default(string), string password = default(string), string position = default(string), RoleEnum?role = default(RoleEnum?), string serverName = default(string), string subscriptionPlanCode = default(string), string timezone = default(string))
 {
     this.AllowedApplicationIds = allowedApplicationIds;
     this.Attributes            = attributes;
     this.AwsCustomerId         = awsCustomerId;
     this.Email                = email;
     this.ExpirationDate       = expirationDate;
     this.Industry             = industry;
     this.Names                = names;
     this.OrganizationName     = organizationName;
     this.Password             = password;
     this.Position             = position;
     this.Role                 = role;
     this.ServerName           = serverName;
     this.SubscriptionPlanCode = subscriptionPlanCode;
     this.Timezone             = timezone;
 }
コード例 #15
0
ファイル: User.cs プロジェクト: filipe-silva/FireflyIII.Net
        /// <summary>
        /// Initializes a new instance of the <see cref="User" /> class.
        /// </summary>
        /// <param name="email">The new users email address. (required).</param>
        /// <param name="blocked">Boolean to indicate if the user is blocked..</param>
        /// <param name="blockedCode">If you say the user must be blocked, this will be the reason code..</param>
        /// <param name="role">Role for the new user. Can be empty or omitted..</param>
        public User(string email = default(string), bool blocked = default(bool), BlockedCodeEnum?blockedCode = default(BlockedCodeEnum?), RoleEnum?role = default(RoleEnum?))
        {
            // to ensure "email" is required (not null)
            if (email == null)
            {
                throw new InvalidDataException("email is a required property for User and cannot be null");
            }
            else
            {
                this.Email = email;
            }

            this.BlockedCode = blockedCode;
            this.Role        = role;
            this.Blocked     = blocked;
            this.BlockedCode = blockedCode;
            this.Role        = role;
        }
コード例 #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentQueryAttributes" /> class.
 /// </summary>
 /// <param name="Role">Role.</param>
 /// <param name="FilterText">FilterText.</param>
 /// <param name="Types">Types.</param>
 /// <param name="Currencies">Currencies.</param>
 /// <param name="After">After.</param>
 /// <param name="Before">Before.</param>
 /// <param name="LessThan">LessThan.</param>
 /// <param name="GreaterThan">GreaterThan.</param>
 /// <param name="Tags">Tags.</param>
 /// <param name="Spaces">Spaces.</param>
 /// <param name="OrderBy">OrderBy.</param>
 /// <param name="Asc">Asc.</param>
 /// <param name="Offset">Offset.</param>
 /// <param name="Limit">Limit.</param>
 /// <param name="Starred">Starred.</param>
 /// <param name="Viewed">Viewed.</param>
 /// <param name="_Checked">_Checked.</param>
 public DocumentQueryAttributes(RoleEnum?Role = default(RoleEnum?), string FilterText = default(string), List <string> Types = default(List <string>), List <string> Currencies = default(List <string>), DateTime?After = default(DateTime?), DateTime?Before = default(DateTime?), float?LessThan = default(float?), float?GreaterThan = default(float?), List <string> Tags = default(List <string>), List <string> Spaces = default(List <string>), string OrderBy = default(string), bool?Asc = default(bool?), int?Offset = default(int?), int?Limit = default(int?), bool?Starred = default(bool?), bool?Viewed = default(bool?), bool?_Checked = default(bool?))
 {
     this.Role        = Role;
     this.FilterText  = FilterText;
     this.Types       = Types;
     this.Currencies  = Currencies;
     this.After       = After;
     this.Before      = Before;
     this.LessThan    = LessThan;
     this.GreaterThan = GreaterThan;
     this.Tags        = Tags;
     this.Spaces      = Spaces;
     this.OrderBy     = OrderBy;
     this.Asc         = Asc;
     this.Offset      = Offset;
     this.Limit       = Limit;
     this.Starred     = Starred;
     this.Viewed      = Viewed;
     this._Checked    = _Checked;
 }
コード例 #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ManifestChildren" /> class.
 /// </summary>
 /// <param name="Type">Type of this JSON object (required).</param>
 /// <param name="Role">Output file type (required).</param>
 /// <param name="Name">Output file type.</param>
 /// <param name="HasThumbnail">Indicates if a thumbnail has been generated .</param>
 /// <param name="Mime">MIME type of the generated file (required).</param>
 /// <param name="Urn">Output file URN; used as a file identifier.</param>
 /// <param name="Progress">Translation progress for requested entity.</param>
 /// <param name="Status">Status of the requested entity; possible values are: &#x60;pending&#x60;, &#x60;success&#x60;, &#x60;inprogress&#x60;, &#x60;failed&#x60;, &#x60;timeout&#x60; and &#x60;partialsuccess&#x60; .</param>
 /// <param name="Resolution">Available thumbnail resolution.</param>
 /// <param name="ModelGUID">ModelGUID.</param>
 /// <param name="ObjectIds">ObjectIds.</param>
 /// <param name="Messages">Messages.</param>
 public ManifestChildren(TypeEnum?Type = null, RoleEnum?Role = null, string Name = null, bool?HasThumbnail = null, string Mime = null, string Urn = null, string Progress = null, StatusEnum?Status = null, List <string> Resolution = null, string ModelGUID = null, List <int?> ObjectIds = null, Messages Messages = null)
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for ManifestChildren and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "Role" is required (not null)
     if (Role == null)
     {
         throw new InvalidDataException("Role is a required property for ManifestChildren and cannot be null");
     }
     else
     {
         this.Role = Role;
     }
     // to ensure "Mime" is required (not null)
     if (Mime == null)
     {
         throw new InvalidDataException("Mime is a required property for ManifestChildren and cannot be null");
     }
     else
     {
         this.Mime = Mime;
     }
     this.Name         = Name;
     this.HasThumbnail = HasThumbnail;
     this.Urn          = Urn;
     this.Progress     = Progress;
     this.Status       = Status;
     this.Resolution   = Resolution;
     this.ModelGUID    = ModelGUID;
     this.ObjectIds    = ObjectIds;
     this.Messages     = Messages;
 }
コード例 #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdFleetOk" /> class.
 /// </summary>
 /// <param name="FleetId">The character&#39;s current fleet ID (required).</param>
 /// <param name="Role">Member’s role in fleet (required).</param>
 /// <param name="SquadId">ID of the squad the member is in. If not applicable, will be set to -1 (required).</param>
 /// <param name="WingId">ID of the wing the member is in. If not applicable, will be set to -1 (required).</param>
 public GetCharactersCharacterIdFleetOk(long?FleetId = default(long?), RoleEnum?Role = default(RoleEnum?), long?SquadId = default(long?), long?WingId = default(long?))
 {
     // to ensure "FleetId" is required (not null)
     if (FleetId == null)
     {
         throw new InvalidDataException("FleetId is a required property for GetCharactersCharacterIdFleetOk and cannot be null");
     }
     else
     {
         this.FleetId = FleetId;
     }
     // to ensure "Role" is required (not null)
     if (Role == null)
     {
         throw new InvalidDataException("Role is a required property for GetCharactersCharacterIdFleetOk and cannot be null");
     }
     else
     {
         this.Role = Role;
     }
     // to ensure "SquadId" is required (not null)
     if (SquadId == null)
     {
         throw new InvalidDataException("SquadId is a required property for GetCharactersCharacterIdFleetOk and cannot be null");
     }
     else
     {
         this.SquadId = SquadId;
     }
     // to ensure "WingId" is required (not null)
     if (WingId == null)
     {
         throw new InvalidDataException("WingId is a required property for GetCharactersCharacterIdFleetOk and cannot be null");
     }
     else
     {
         this.WingId = WingId;
     }
 }
コード例 #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Model13" /> class.
 /// </summary>
 /// <param name="firstName">firstName (required).</param>
 /// <param name="lastName">lastName (required).</param>
 /// <param name="role">role.</param>
 public Model13(string firstName = default(string), string lastName = default(string), RoleEnum?role = default(RoleEnum?))
 {
     // to ensure "firstName" is required (not null)
     if (firstName == null)
     {
         throw new InvalidDataException("firstName is a required property for Model13 and cannot be null");
     }
     else
     {
         this.FirstName = firstName;
     }
     // to ensure "lastName" is required (not null)
     if (lastName == null)
     {
         throw new InvalidDataException("lastName is a required property for Model13 and cannot be null");
     }
     else
     {
         this.LastName = lastName;
     }
     this.Role = role;
 }
コード例 #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PostFleetsFleetIdMembersInvitation" /> class.
 /// </summary>
 /// <param name="CharacterId">The character you want to invite (required).</param>
 /// <param name="Role">- If a character is invited with the &#x60;fleet_commander&#x60; role, neither &#x60;wing_id&#x60; or &#x60;squad_id&#x60; should be specified - If a character is invited with the &#x60;wing_commander&#x60; role, only &#x60;wing_id&#x60; should be specified - If a character is invited with the &#x60;squad_commander&#x60; role, both &#x60;wing_id&#x60; and &#x60;squad_id&#x60; should be specified - If a character is invited with the &#x60;squad_member&#x60; role, &#x60;wing_id&#x60; and &#x60;squad_id&#x60; should either both be specified or not specified at all. If they aren’t specified, the invited character will join any squad with available positions  (required).</param>
 /// <param name="SquadId">squad_id integer.</param>
 /// <param name="WingId">wing_id integer.</param>
 public PostFleetsFleetIdMembersInvitation(int?CharacterId = default(int?), RoleEnum?Role = default(RoleEnum?), long?SquadId = default(long?), long?WingId = default(long?))
 {
     // to ensure "CharacterId" is required (not null)
     if (CharacterId == null)
     {
         throw new InvalidDataException("CharacterId is a required property for PostFleetsFleetIdMembersInvitation and cannot be null");
     }
     else
     {
         this.CharacterId = CharacterId;
     }
     // to ensure "Role" is required (not null)
     if (Role == null)
     {
         throw new InvalidDataException("Role is a required property for PostFleetsFleetIdMembersInvitation and cannot be null");
     }
     else
     {
         this.Role = Role;
     }
     this.SquadId = SquadId;
     this.WingId  = WingId;
 }
コード例 #21
0
        public virtual JsonResult ChangeWorspaceActionOrRole(string workspace, RoleEnum?role, ActionEnum?action)
        {
            _cacheStorageService.Remove("AuthorizationInfo");

            var auth = new AuthorizationOperationInfo()
            {
                ActionList = new List <ActionEnum>(),
                RoleList   = new List <RoleEnum>(),
                UserName   = IDBContext.Current.UserLoginName
            };

            if (role.HasValue)
            {
                auth.RoleList.Add(role.Value);
            }

            auth.ActionList.Add(ActionEnum.ConvergenceReadPermission);

            if (!auth.ActionList.Any(x => x == action))
            {
                if (action.HasValue)
                {
                    auth.ActionList.Add(action.Value);
                }
            }

            var authPermission = new AuthorizationInfo()
            {
                Authorization = new Dictionary <string, AuthorizationOperationInfo>()
            };

            authPermission.WorkspaceAuthorization.Add(workspace, auth);

            _cacheStorageService.Add("AuthorizationInfo", authPermission);

            return(Json(new { IsValid = true, ErrorMessage = "Permissions was changed" }));
        }
コード例 #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User" /> class.
 /// </summary>
 /// <param name="username">The username of the User. The username is used to login.</param>
 /// <param name="domain">The _domain_ is the Organization which a user or a DST belongs.</param>
 /// <param name="language">The default language of the User.</param>
 /// <param name="name">The name of the User.</param>
 /// <param name="surname">The name of the User.</param>
 /// <param name="email">The email address of the User.</param>
 /// <param name="phone">The phone number of the User.</param>
 /// <param name="role">The role of the User. The **admin** can create users, as well as DSTs and can sign. The **instructor** can create DSTs and sign. The **signer** can only sign documents. .</param>
 /// <param name="groups">A group of users. This is useful during DSTs creation, it is possible to select a group as signers. This way all the components of that group have to sign the document.</param>
 /// <param name="capabilities">The capabilities represents the action a user is able to do.</param>
 /// <param name="extraData">Extra data associated to the User.</param>
 public User(string username = default(string), string domain = default(string), LanguageEnum?language = default(LanguageEnum?), string name = default(string), string surname = default(string), string email = default(string), decimal phone = default(decimal), RoleEnum?role = default(RoleEnum?), List <UserGroup> groups = default(List <UserGroup>), CapabilitiesEnum capabilities = default(CapabilitiesEnum), Dictionary <string, Object> extraData = default(Dictionary <string, Object>))
 {
     this.Username     = username;
     this.Domain       = domain;
     this.Language     = language;
     this.Name         = name;
     this.Surname      = surname;
     this.Email        = email;
     this.Phone        = phone;
     this.Role         = role;
     this.Groups       = groups;
     this.Capabilities = capabilities;
     this.ExtraData    = extraData;
 }
コード例 #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DetailedParticipantSetInfo" /> class.
 /// </summary>
 /// <param name="Id">The unique identifier of the participant set. This cannot be changed as part of the PUT call..</param>
 /// <param name="MemberInfos">Array of ParticipantInfo objects, containing participant-specific data (e.g. email). All participants in the array belong to the same set.</param>
 /// <param name="Name">Name of ParticipantSet (it can be empty, but needs not to be unique in a single agreement). Maximum no of characters in participant set name is restricted to 255. This cannot be changed as part of the PUT call..</param>
 /// <param name="Order">Index indicating sequential signing group (specified for hybrid routing). This cannot be changed as part of the PUT call..</param>
 /// <param name="PrivateMessage">Participant set&#39;s private message - all participants in the set will receive the same message. This cannot be changed as part of the PUT call..</param>
 /// <param name="Role">Role assumed by all participants in the set (signer, approver etc.). This cannot be changed as part of the PUT call..</param>
 /// <param name="Status">The agreement status with respect to the participant set. This cannot be changed as part of the PUT call..</param>
 public DetailedParticipantSetInfo(string Id = default(string), List <DetailedParticipantInfo> MemberInfos = default(List <DetailedParticipantInfo>), string Name = default(string), int?Order = default(int?), string PrivateMessage = default(string), RoleEnum?Role = default(RoleEnum?), StatusEnum?Status = default(StatusEnum?))
 {
     this.Id             = Id;
     this.MemberInfos    = MemberInfos;
     this.Name           = Name;
     this.Order          = Order;
     this.PrivateMessage = PrivateMessage;
     this.Role           = Role;
     this.Status         = Status;
 }
コード例 #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WidgetAdditionalParticipationSetInfo" /> class.
 /// </summary>
 /// <param name="MemberInfos">Array of ParticipantInfo objects, containing participant-specific data (email, e.g.) for all the additional participants in the widget.</param>
 /// <param name="Order">Index indicating position at which signing group needs to sign. Additional participant to sign at first place is assigned a index of 1. Widget participant should not have any order specified. Widget participant should not have any email address and and can not have phone authentication applied. Different signingOrder specified in input should form a valid consecutive increasing sequence of integers. Otherwise signingOrder will be considered invalid.</param>
 /// <param name="Role">Role assumed by all participants in the set (signer, approver, etc.) Widget First Participant will only have roles - Signer, Approver, Acceptor and Form Filler.</param>
 public WidgetAdditionalParticipationSetInfo(List <ParticipantSetMemberInfo> MemberInfos = default(List <ParticipantSetMemberInfo>), int?Order = default(int?), RoleEnum?Role = default(RoleEnum?))
 {
     this.MemberInfos = MemberInfos;
     this.Order       = Order;
     this.Role        = Role;
 }
コード例 #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebChatMemberInfo" /> class.
 /// </summary>
 /// <param name="Id">The communicationId of this member..</param>
 /// <param name="DisplayName">The display name of the member..</param>
 /// <param name="FirstName">The first name of the member..</param>
 /// <param name="LastName">The last name of the member..</param>
 /// <param name="Email">The email address of the member..</param>
 /// <param name="PhoneNumber">The phone number of the member..</param>
 /// <param name="AvatarImageUrl">The url to the avatar image of the member..</param>
 /// <param name="Role">The role of the member, one of [agent, customer, acd, workflow] (required).</param>
 /// <param name="JoinDate">The time the member joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="LeaveDate">The time the member left the conversation, or null if the member is still active in the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="AuthenticatedGuest">If true, the guest member is an authenticated guest..</param>
 /// <param name="CustomFields">Any custom fields of information pertaining to this member..</param>
 /// <param name="State">The connection state of this member..</param>
 public WebChatMemberInfo(string Id = null, string DisplayName = null, string FirstName = null, string LastName = null, string Email = null, string PhoneNumber = null, string AvatarImageUrl = null, RoleEnum?Role = null, DateTime?JoinDate = null, DateTime?LeaveDate = null, bool?AuthenticatedGuest = null, Dictionary <string, string> CustomFields = null, StateEnum?State = null)
 {
     this.Id                 = Id;
     this.DisplayName        = DisplayName;
     this.FirstName          = FirstName;
     this.LastName           = LastName;
     this.Email              = Email;
     this.PhoneNumber        = PhoneNumber;
     this.AvatarImageUrl     = AvatarImageUrl;
     this.Role               = Role;
     this.JoinDate           = JoinDate;
     this.LeaveDate          = LeaveDate;
     this.AuthenticatedGuest = AuthenticatedGuest;
     this.CustomFields       = CustomFields;
     this.State              = State;
 }
コード例 #26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomField" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Tip">Tip.</param>
 /// <param name="Type">Type.</param>
 /// <param name="Options">Options.</param>
 /// <param name="Role">Role.</param>
 /// <param name="Value">Value.</param>
 /// <param name="Dependency">Dependency.</param>
 /// <param name="Flags">Flags.</param>
 /// <param name="Actions">Actions.</param>
 /// <param name="Category">Category.</param>
 public CustomField(int?Id = default(int?), string Name = default(string), string Tip = default(string), TypeEnum?Type = default(TypeEnum?), List <string> Options = default(List <string>), RoleEnum?Role = default(RoleEnum?), string Value = default(string), CustomFieldDependency Dependency = default(CustomFieldDependency), List <FlagsEnum> Flags = default(List <FlagsEnum>), List <ActionsEnum> Actions = default(List <ActionsEnum>), string Category = default(string))
 {
     this.Id         = Id;
     this.Name       = Name;
     this.Tip        = Tip;
     this.Type       = Type;
     this.Options    = Options;
     this.Role       = Role;
     this.Value      = Value;
     this.Dependency = Dependency;
     this.Flags      = Flags;
     this.Actions    = Actions;
     this.Category   = Category;
 }
コード例 #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkInterface" /> class.
 /// </summary>
 /// <param name="bondSlaveSlotTypes">Specifies the types of the slots of any slaves if this interface is a bond..</param>
 /// <param name="bondSlaves">Specifies the names of any slaves if this interface is a bond..</param>
 /// <param name="bondingMode">Specifies the bonding mode if this interface is a bond. &#39;kActiveBackup&#39; indicates active backup bonding mode. &#39;k802_3ad&#39; indicates 802.3ad bonding mode..</param>
 /// <param name="gateway">Specifies the gateway of the interface..</param>
 /// <param name="group">Specifies the group that this interface belongs to..</param>
 /// <param name="id">Specifies the ID of this network interface..</param>
 /// <param name="isConnected">Specifies whether or not the Interface is connected..</param>
 /// <param name="isDefaultRoute">Specifies whether or not to use this interface as the default route..</param>
 /// <param name="isUp">Specifies whether or not the interface is currently  up..</param>
 /// <param name="macAddress">Specifies the Mac address of the Interface..</param>
 /// <param name="mtu">Specifies the MTU of the interface..</param>
 /// <param name="name">Specifies the name of the interface port..</param>
 /// <param name="role">Specifies the role of this interface. &#39;kPrimary&#39; indicates a primary role. &#39;kSecondary&#39; indicates a secondary role..</param>
 /// <param name="services">Specifies the types of services this interface is used for. &#39;kReplicationService&#39; indicates a service which is used for data replication. &#39;kRemoteTunnelService&#39; indicates a service which is used for remote tunneling. &#39;kClusterDataService&#39; indicates a service which is used for managing Cluster data. &#39;kAvahiDiscoverService&#39; indicates a service which is used for Avahi discovery..</param>
 /// <param name="speed">Specifies the speed of the Interface..</param>
 /// <param name="staticIp">Specifies the static IP of the interface..</param>
 /// <param name="subnet">Specifies the subnet mask of the interface..</param>
 /// <param name="type">Specifies the type of interface. &#39;kPhysicalInterface&#39; indicates a physical interface type. &#39;kBondMasterInterface&#39; indicates that the interface is the master of a bond. &#39;kBondSlaveInterface&#39; indicates the the interface is a slave of a bond. &#39;kTaggedVlanInterface&#39; indicates a tagged vlan interface type..</param>
 /// <param name="virtualIp">Specifies the virtual IP of the interface..</param>
 public NetworkInterface(List<string> bondSlaveSlotTypes = default(List<string>), List<string> bondSlaves = default(List<string>), BondingModeEnum? bondingMode = default(BondingModeEnum?), string gateway = default(string), string group = default(string), long? id = default(long?), bool? isConnected = default(bool?), bool? isDefaultRoute = default(bool?), bool? isUp = default(bool?), string macAddress = default(string), int? mtu = default(int?), string name = default(string), RoleEnum? role = default(RoleEnum?), List<ServicesEnum> services = default(List<ServicesEnum>), string speed = default(string), string staticIp = default(string), string subnet = default(string), TypeEnum? type = default(TypeEnum?), string virtualIp = default(string))
 {
     this.BondSlaveSlotTypes = bondSlaveSlotTypes;
     this.BondSlaves = bondSlaves;
     this.BondingMode = bondingMode;
     this.Gateway = gateway;
     this.Group = group;
     this.Id = id;
     this.IsConnected = isConnected;
     this.IsDefaultRoute = isDefaultRoute;
     this.IsUp = isUp;
     this.MacAddress = macAddress;
     this.Mtu = mtu;
     this.Name = name;
     this.Role = role;
     this.Services = services;
     this.Speed = speed;
     this.StaticIp = staticIp;
     this.Subnet = subnet;
     this.Type = type;
     this.VirtualIp = virtualIp;
     this.BondSlaveSlotTypes = bondSlaveSlotTypes;
     this.BondSlaves = bondSlaves;
     this.BondingMode = bondingMode;
     this.Gateway = gateway;
     this.Group = group;
     this.Id = id;
     this.IsConnected = isConnected;
     this.IsDefaultRoute = isDefaultRoute;
     this.IsUp = isUp;
     this.MacAddress = macAddress;
     this.Mtu = mtu;
     this.Name = name;
     this.Role = role;
     this.Services = services;
     this.Speed = speed;
     this.StaticIp = staticIp;
     this.Subnet = subnet;
     this.Type = type;
     this.VirtualIp = virtualIp;
 }
コード例 #28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WidgetParticipantSetInfo" /> class.
 /// </summary>
 /// <param name="MemberInfos">Array of ParticipantInfo objects, containing participant - specific data (email, e.g.). All participants in the array belong to the same set. Currently we are supporting only one member in the set. Since the email of the widget signer is unknown at the time of widget creation, the email should be left empty and its optional security options should be provided. .</param>
 /// <param name="Role">Role assumed by all participants in the set (signer, approver, etc.) Widget First Participant will only have roles - Signer, Approver, Acceptor and Form Filler.</param>
 public WidgetParticipantSetInfo(List <ParticipantSetMemberInfo> MemberInfos = default(List <ParticipantSetMemberInfo>), RoleEnum?Role = default(RoleEnum?))
 {
     this.MemberInfos = MemberInfos;
     this.Role        = Role;
 }
コード例 #29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetFleetsFleetIdMembers200Ok" /> class.
 /// </summary>
 /// <param name="CharacterId">character_id integer (required).</param>
 /// <param name="JoinTime">join_time string (required).</param>
 /// <param name="Role">Member’s role in fleet (required).</param>
 /// <param name="RoleName">Localized role names (required).</param>
 /// <param name="ShipTypeId">ship_type_id integer (required).</param>
 /// <param name="SolarSystemId">Solar system the member is located in (required).</param>
 /// <param name="SquadId">ID of the squad the member is in. If not applicable, will be set to -1 (required).</param>
 /// <param name="StationId">Station in which the member is docked in, if applicable.</param>
 /// <param name="TakesFleetWarp">Whether the member take fleet warps (required).</param>
 /// <param name="WingId">ID of the wing the member is in. If not applicable, will be set to -1 (required).</param>
 public GetFleetsFleetIdMembers200Ok(int?CharacterId = default(int?), DateTime?JoinTime = default(DateTime?), RoleEnum?Role = default(RoleEnum?), string RoleName = default(string), int?ShipTypeId = default(int?), int?SolarSystemId = default(int?), long?SquadId = default(long?), long?StationId = default(long?), bool?TakesFleetWarp = default(bool?), long?WingId = default(long?))
 {
     // to ensure "CharacterId" is required (not null)
     if (CharacterId == null)
     {
         throw new InvalidDataException("CharacterId is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.CharacterId = CharacterId;
     }
     // to ensure "JoinTime" is required (not null)
     if (JoinTime == null)
     {
         throw new InvalidDataException("JoinTime is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.JoinTime = JoinTime;
     }
     // to ensure "Role" is required (not null)
     if (Role == null)
     {
         throw new InvalidDataException("Role is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.Role = Role;
     }
     // to ensure "RoleName" is required (not null)
     if (RoleName == null)
     {
         throw new InvalidDataException("RoleName is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.RoleName = RoleName;
     }
     // to ensure "ShipTypeId" is required (not null)
     if (ShipTypeId == null)
     {
         throw new InvalidDataException("ShipTypeId is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.ShipTypeId = ShipTypeId;
     }
     // to ensure "SolarSystemId" is required (not null)
     if (SolarSystemId == null)
     {
         throw new InvalidDataException("SolarSystemId is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.SolarSystemId = SolarSystemId;
     }
     // to ensure "SquadId" is required (not null)
     if (SquadId == null)
     {
         throw new InvalidDataException("SquadId is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.SquadId = SquadId;
     }
     // to ensure "TakesFleetWarp" is required (not null)
     if (TakesFleetWarp == null)
     {
         throw new InvalidDataException("TakesFleetWarp is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.TakesFleetWarp = TakesFleetWarp;
     }
     // to ensure "WingId" is required (not null)
     if (WingId == null)
     {
         throw new InvalidDataException("WingId is a required property for GetFleetsFleetIdMembers200Ok and cannot be null");
     }
     else
     {
         this.WingId = WingId;
     }
     this.StationId = StationId;
 }
コード例 #30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InviteSubaccountInputObject" /> class.
 /// </summary>
 /// <param name="email">The invitation email will be sent to this email address..</param>
 /// <param name="role">Type of account: *   **A** for Administrator sub-account; *   **U** for Regular User. .</param>
 public InviteSubaccountInputObject(string email = default(string), RoleEnum?role = default(RoleEnum?))
 {
     this.Email = email;
     this.Role  = role;
 }