コード例 #1
0
        public bool Role_GetPermissions(WebServiceSimpleAuthentication Authentication, string RoleName, out APIStatus Status, out EnvironmentPermissionForRole[] PlatformRolePermissions)
        {
            object[] results = this.Invoke("Role_GetPermissions", new object[] {
                Authentication,
                RoleName
            });

            Status = ((APIStatus)(results[1]));
            PlatformRolePermissions = ((EnvironmentPermissionForRole[])(results[2]));
            return((bool)(results[0]));
        }
コード例 #2
0
        public bool Role_CreateOrUpdate(WebServiceSimpleAuthentication Authentication, string RoleName, bool CanConfigureInfrastructure, string RoleDescription, out APIStatus Status, out PlatformRole PlatformRole)
        {
            object[] results = this.Invoke("Role_CreateOrUpdate", new object[] {
                Authentication,
                RoleName,
                CanConfigureInfrastructure,
                RoleDescription
            });

            Status       = ((APIStatus)(results[1]));
            PlatformRole = ((PlatformRole)(results[2]));
            return((bool)(results[0]));
        }
コード例 #3
0
        public bool Role_Delete(WebServiceSimpleAuthentication Authentication, string RoleName, string UsersNewRoleName, out APIStatus Status, out PlatformUser[] AffectedPlatformUsers)
        {
            object[] results = this.Invoke("Role_Delete", new object[] {
                Authentication,
                RoleName,
                UsersNewRoleName
            });

            Status = ((APIStatus)(results[1]));
            AffectedPlatformUsers = ((PlatformUser[])(results[2]));
            return((bool)(results[0]));
        }
コード例 #4
0
        public bool Role_ChangeName(WebServiceSimpleAuthentication Authentication, string OldRoleName, string NewRoleName, out APIStatus Status)
        {
            object[] results = this.Invoke("Role_ChangeName", new object[] {
                Authentication,
                OldRoleName,
                NewRoleName
            });

            Status = ((APIStatus)(results[1]));
            return((bool)(results[0]));
        }
コード例 #5
0
        public bool Role_UpdatePermission(WebServiceSimpleAuthentication Authentication, string RoleName, string EnvironmentKey, int NewPermissionLevelId, out APIStatus Status)
        {
            object[] results = this.Invoke("Role_UpdatePermission", new object[] {
                Authentication,
                RoleName,
                EnvironmentKey,
                NewPermissionLevelId
            });

            Status = ((APIStatus)(results[1]));
            return((bool)(results[0]));
        }